aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-05-21 15:53:48 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-05-21 15:53:48 +0200
commite489f37e3dad1a30efed673d244e4ec97454c707 (patch)
tree8075a0e60cc015300cd3db52d8ce61501f8b8f71
parent646eaac08c1f286dc80171ba469b2a1336a0d0de (diff)
downloadallocbench-e489f37e3dad1a30efed673d244e4ec97454c707.tar.gz
allocbench-e489f37e3dad1a30efed673d244e4ec97454c707.zip
don't break if a result is NaN
-rw-r--r--src/benchmarks/dj_trace.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmarks/dj_trace.py b/src/benchmarks/dj_trace.py
index 485ac8a..b808f4d 100644
--- a/src/benchmarks/dj_trace.py
+++ b/src/benchmarks/dj_trace.py
@@ -173,10 +173,10 @@ class Benchmark_DJ_Trace(Benchmark):
for i, allocator in enumerate(allocators):
d = [x["cputime"] for x in self.results[allocator][perm]]
# data is in milliseconds
- cpu_time_means[allocator][perm] = int(np.mean(d)/1000)
+ cpu_time_means[allocator][perm] = np.mean(d)/1000
d = [x["cycles"] for x in self.results[allocator][perm]]
- cycles_means[allocator][perm] = int(np.mean(d))
+ cycles_means[allocator][perm] = np.mean(d)
plt.bar([i], cpu_time_means[allocator][perm], label=allocator,
color=allocators[allocator]["color"])
@@ -330,8 +330,8 @@ class Benchmark_DJ_Trace(Benchmark):
for perm in self.iterate_args(args=args):
cycles = cycles_means[allocator][perm]
- times = [int(t) for t in func_times_means[allocator][perm]]
- rss = int(rss_means[allocator][perm])
+ times = [t for t in func_times_means[allocator][perm]]
+ rss = rss_means[allocator][perm]
print(fmt.format(perm.workload, cycles, times[0], times[1],
times[2], times[3], rss), file=f)