aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 13:23:52 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commit2afbb905c47b12dab0ceddbe8516675d291a4345 (patch)
treed244a5d736e055475291bc4c004718e85aaf2e9c
parentfdb360c094b575b59640206d7eea0772bb9de26d (diff)
downloadserd-2afbb905c47b12dab0ceddbe8516675d291a4345.tar.gz
serd-2afbb905c47b12dab0ceddbe8516675d291a4345.tar.bz2
serd-2afbb905c47b12dab0ceddbe8516675d291a4345.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 b34545b0..b9b8ca83 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')
@@ -200,7 +200,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