16 lines
742 B
Python
16 lines
742 B
Python
#!/usr/bin/env python3
|
|
import csv
|
|
tags = ["r3-ctrl-r1best", "r3-ctrl-r2win", "r3-s4", "r3-s8", "r3-s10", "r3-s11",
|
|
"r3-s12", "r3-s13", "r3-s14", "r3-s16", "r3-s24", "r3-s32",
|
|
"r3-w64", "r3-w1024", "r3-lit18s12", "r3-nolearns12"]
|
|
files = ["gen-mixed-l0.zip", "covid-countries.csv", "easylist.txt", "c-bundle.c",
|
|
"warandpeace.txt", "moby-dick.txt", "burpsuite-src.zip"]
|
|
hdr = "tag".ljust(16) + "".join(f[:14].rjust(15) for f in files)
|
|
print(hdr)
|
|
for t in tags:
|
|
row = {}
|
|
with open("/root/fftdict-rsi/results/bench-%s.tsv" % t) as fh:
|
|
for r in csv.DictReader(fh, delimiter="\t"):
|
|
row[r["file"]] = float(r["ratio"])
|
|
print(t.ljust(16) + "".join(("%0.4f" % row[f]).rjust(15) for f in files))
|