From 96d3625724bc405f4f727a88c25c6efdf08bfcfb Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 3 Jun 2020 11:16:47 +0200 Subject: [lld] use plots.get_y_data in custom plots to handle missing data --- allocbench/benchmarks/lld.py | 18 ++++++++++++++---- 1 file 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"]) -- cgit v1.2.3