aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2018-07-23 19:13:41 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2018-07-23 19:13:41 +0200
commit3d2103cc95bb1b01dfcb4bbe524e6715b3d4686f (patch)
treea8cf4f51005776c2c785eef60759041b80398341
parentcf9ba4a77869845a73d2febf49d36f35aa9c6c3c (diff)
downloadallocbench-3d2103cc95bb1b01dfcb4bbe524e6715b3d4686f.tar.gz
allocbench-3d2103cc95bb1b01dfcb4bbe524e6715b3d4686f.zip
fix mysql footprint again
-rw-r--r--mysql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql.py b/mysql.py
index 1300465..773a20c 100644
--- a/mysql.py
+++ b/mysql.py
@@ -221,8 +221,8 @@ class Benchmark_MYSQL( Benchmark ):
vsz_growth = []
rss_growth = []
for m in measures:
- vsz_growth.append(m["VSZ_start"] - m["VSZ_end"])
- rss_growth.append(m["RSS_start"] - m["RSS_end"])
+ vsz_growth.append(int(m["VSZ_end"]) - int(m["VSZ_start"]))
+ rss_growth.append(int(m["RSS_end"]) - int(m["RSS_start"]))
print(target, "memory footprint:")
print("\t avg vsz growth:", np.mean(vsz_growth))
print("\t avg rss growth:", np.mean(rss_growth))