From 5d7ed8ac6168fb05b66f71a8191a7a394fba3c54 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 30 Oct 2019 14:35:28 +0100 Subject: add tex tables to cfrac and espresso --- src/benchmarks/cfrac.py | 8 ++++++++ src/benchmarks/espresso.py | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/benchmarks/cfrac.py b/src/benchmarks/cfrac.py index 0a0a8d5..df5001d 100644 --- a/src/benchmarks/cfrac.py +++ b/src/benchmarks/cfrac.py @@ -84,6 +84,14 @@ class BenchmarkCfrac(Benchmark): title='"Cfrac VmHWM"', filepostfix="vmhwm") + self.write_tex_table([{"label": "Runtime [ms]", + "expression": "{task-clock}", + "sort": "<"}, + {"label": "Memusage [KB]", + "expression": "{VmHWM}", + "sort": "<"}], + filepostfix="table") + self.export_stats_to_dataref("task-clock") self.export_stats_to_dataref("VmHWM") diff --git a/src/benchmarks/espresso.py b/src/benchmarks/espresso.py index 68e474c..7dbc73b 100644 --- a/src/benchmarks/espresso.py +++ b/src/benchmarks/espresso.py @@ -83,6 +83,14 @@ class BenchmarkEspresso(Benchmark): title='"Espresso VmHWM"', filepostfix="vmhwm") + self.write_tex_table([{"label": "Runtime [ms]", + "expression": "{task-clock}", + "sort": "<"}, + {"label": "Memusage [KB]", + "expression": "{VmHWM}", + "sort": "<"}], + filepostfix="table") + self.export_stats_to_dataref("task-clock") self.export_stats_to_dataref("VmHWM") -- cgit v1.2.3