diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-05-21 15:53:48 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-05-21 15:53:48 +0200 |
| commit | e489f37e3dad1a30efed673d244e4ec97454c707 (patch) | |
| tree | 8075a0e60cc015300cd3db52d8ce61501f8b8f71 | |
| parent | 646eaac08c1f286dc80171ba469b2a1336a0d0de (diff) | |
| download | allocbench-e489f37e3dad1a30efed673d244e4ec97454c707.tar.gz allocbench-e489f37e3dad1a30efed673d244e4ec97454c707.zip | |
don't break if a result is NaN
| -rw-r--r-- | src/benchmarks/dj_trace.py | 8 |
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) |
