aboutsummaryrefslogtreecommitdiffstats
path: root/serd_bench.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 13:23:52 +0200
committerDavid Robillard <d@drobilla.net>2018-12-31 12:15:40 -0500
commit85627db501282f3cb49223b816dbc226bd99ca16 (patch)
tree46d9753167d4f7c850efcc751d4c598b60bf48ff /serd_bench.py
parent0342270f81dc9c676a92422c4e73484fb44f6da8 (diff)
downloadserd-85627db501282f3cb49223b816dbc226bd99ca16.tar.gz
serd-85627db501282f3cb49223b816dbc226bd99ca16.tar.bz2
serd-85627db501282f3cb49223b816dbc226bd99ca16.zip
Add model to benchmarks
Diffstat (limited to 'serd_bench.py')
-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