aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 13:23:52 +0200
committerDavid Robillard <d@drobilla.net>2018-11-25 22:12:48 +0100
commit584e7d39adfd3abdb25c2cf9251aa1ea5f293e8e (patch)
tree922a82341e1e095cc98ca1faccc08d0d5e8449eb
parentc9fe9fdb61e15b64d03a8da062648ecd3f86d700 (diff)
downloadserd-584e7d39adfd3abdb25c2cf9251aa1ea5f293e8e.tar.gz
serd-584e7d39adfd3abdb25c2cf9251aa1ea5f293e8e.tar.bz2
serd-584e7d39adfd3abdb25c2cf9251aa1ea5f293e8e.zip
Add model to benchmarks
-rwxr-xr-xserd_bench.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/serd_bench.py b/serd_bench.py
index 4dda6e36..2f6d6d31 100755
--- a/serd_bench.py
+++ b/serd_bench.py
@@ -42,8 +42,8 @@ def gen(sp2b_dir, n_min, n_max, step):
def write_header(results, progs):
"Write the header line for TSV output"
- results.write('n')
- for prog in progs:
+ results.write('n\tserdi_stream\tserdi_model')
+ for prog in progs[2:]:
results.write('\t' + os.path.basename(prog.split()[0]))
results.write('\n')
@@ -196,7 +196,8 @@ Example:
opt.print_usage()
sys.exit(1)
- progs = ['serdi -b -f -i turtle -o turtle'] + options.run
+ progs = ['serdi -b -i turtle -o turtle',
+ 'serdi -m -b -i turtle -o turtle'] + options.run
min_n = int(options.max / 10)
max_n = options.max
step = min_n