diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-06-03 11:16:47 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-06-03 11:24:37 +0200 |
| commit | 96d3625724bc405f4f727a88c25c6efdf08bfcfb (patch) | |
| tree | 2e256e31b7dbc87284e9886875d3dccd261a6f60 | |
| parent | 3ab7c2c0cf803a1caeb5d2e45a663c84effe92fa (diff) | |
| download | allocbench-96d3625724bc405f4f727a88c25c6efdf08bfcfb.tar.gz allocbench-96d3625724bc405f4f727a88c25c6efdf08bfcfb.zip | |
[lld] use plots.get_y_data in custom plots to handle missing data
| -rw-r--r-- | allocbench/benchmarks/lld.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/allocbench/benchmarks/lld.py b/allocbench/benchmarks/lld.py index 0395843..fb4f337 100644 --- a/allocbench/benchmarks/lld.py +++ b/allocbench/benchmarks/lld.py @@ -263,8 +263,13 @@ class BenchmarkLld(Benchmark): for i, allocator in enumerate(allocators): plt.bar([i], - stats[allocator][perm]["mean"]["task-clock"], - yerr=stats[allocator][perm]["std"]["task-clock"], + allocbench.plots.get_y_data(self, "task-clock", + allocator, perm), + yerr=allocbench.plots.get_y_data(self, + "task-clock", + allocator, + perm, + stat="std"), label=allocator, color=allocators[allocator]["color"]) @@ -276,8 +281,13 @@ class BenchmarkLld(Benchmark): for i, alloc in enumerate(allocators): plt.bar([i], - stats[alloc][perm]["mean"]["VmHWM"] / 1000, - yerr=stats[alloc][perm]["std"]["VmHWM"] / 1000, + allocbench.plots.get_y_data(self, "VmHWH", allocator, + perm), + yerr=allocbench.plots.get_y_data(self, + "VmHWM", + allocator, + perm, + stat="std"), label=alloc, color=allocators[alloc]["color"]) |
