aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-01-15 16:34:56 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-01-15 18:29:39 +0100
commitb334c2a7097aa3db41cd8f43e32e9586dc1e4661 (patch)
treea267e3c1a65ae162339236826ce6434bc21202c9 /src
parent183795e6a9370fb06002574a3cc413cb475601e8 (diff)
downloadallocbench-b334c2a7097aa3db41cd8f43e32e9586dc1e4661.tar.gz
allocbench-b334c2a7097aa3db41cd8f43e32e9586dc1e4661.zip
remove debug output from write_best_doublearg_tex_table
Diffstat (limited to 'src')
-rw-r--r--src/benchmark.py8
-rw-r--r--src/common_targets.py48
2 files changed, 48 insertions, 8 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index f6e7d70..0f5dbdb 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -325,9 +325,7 @@ class Benchmark (object):
row_arg = [arg for arg in args if arg != header_arg][0]
headers = args[header_arg]
- print(header_arg, len(headers))
rows = args[row_arg]
- print(row_arg, len(rows))
cell_text = []
for av in rows:
@@ -340,16 +338,10 @@ class Benchmark (object):
for m in self.results[target][perm]:
d.append(eval(evaluation.format(**m)))
mean = np.mean(d)
- if target == "glibc":
- print(perm)
- print(np.std(d)/mean, "%")
- if perm.maxsize==64 and perm.nthreads==2:
- print(target, mean)
if not best_val:
best = [target]
best_val = mean
elif (sort == ">" and mean > best_val) or (sort == "<" and mean < best_val):
-
best = [target]
best_val = mean
elif mean == best_val:
diff --git a/src/common_targets.py b/src/common_targets.py
new file mode 100644
index 0000000..277c3bf
--- /dev/null
+++ b/src/common_targets.py
@@ -0,0 +1,48 @@
+import subprocess
+
+glibc_path_notc = "../glibc/glibc-install-notc/lib"
+
+library_path = ""
+p = subprocess.run(["ldconfig", "-v"], stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ universal_newlines=True)
+
+for l in p.stdout.splitlines():
+ if not l.startswith('\t'):
+ library_path += l
+
+common_targets = {
+ "glibc" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "",
+ "color" : "C1"
+ },
+ "tcmalloc" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "targets/libtcmalloc.so",
+ "color" : "C2"
+ },
+ "jemalloc" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "targets/libjemalloc.so",
+ "color" : "C3"
+ },
+ "hoard" : {
+ "cmd_prefix" : "",
+ "binary_suffix" : "",
+ "LD_PRELOAD" : "targets/libhoard.so",
+ "color" : "C4"
+ },
+ "glibc-notc" : {
+ "cmd_prefix" : glibc_path_notc+"/ld-linux-x86-64.so.2 "
+ + "--library-path "
+ + glibc_path_notc + ":"
+ + library_path,
+ "binary_suffix" : "-glibc-notc",
+ "LD_PRELOAD" : "/usr/lib/libstdc++.so /usr/lib/libgcc_s.so.1",
+ "color" : "C5"
+ },
+ }