From d64bbff1f00e31a92031a44395958a360c93171b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 29 Feb 2024 14:56:18 +0100 Subject: Added benchmarks --- benchmarks/by-n/run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 benchmarks/by-n/run.sh (limited to 'benchmarks/by-n/run.sh') diff --git a/benchmarks/by-n/run.sh b/benchmarks/by-n/run.sh new file mode 100755 index 0000000..65f7af8 --- /dev/null +++ b/benchmarks/by-n/run.sh @@ -0,0 +1,11 @@ +#!/bin/env sh + +rm -rf temp.bruijn *.json +for file in $(find . -type f -name "*.bruijn" | sort); do + echo "testing $file" + spec=$(head -n 1 "$file") + range=${spec#??} + nseq=$(seq -s, $range) # requires splitting, no quotes! + reducers=$(find ../../src/Reducer/ -type f -name "*.hs" -exec basename {} .hs \; | paste -sd, -) + hyperfine --export-json "$file.json" --warmup 3 -r 3 -L REDUCER "$reducers" -L N $nseq "BENCH_N={N} envsubst <$file >temp.bruijn; bruijn -y -r {REDUCER} temp.bruijn /dev/null;" +done -- cgit v1.2.3