From 568d4c343ede68c36a33720f5f31a57eb34c59ac Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 14 Sep 2015 16:34:02 -0400 Subject: [PATCH] benchmarks/markdown: make `$s` configurable Signed-off-by: Jean Privat --- benchmarks/markdown/bench_markdown.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/benchmarks/markdown/bench_markdown.sh b/benchmarks/markdown/bench_markdown.sh index aaa34f0..7893fa8 100755 --- a/benchmarks/markdown/bench_markdown.sh +++ b/benchmarks/markdown/bench_markdown.sh @@ -24,6 +24,9 @@ source ../bench_plot.sh # Can be overrided with 'the option -n' count=2 +# Default number of times the input file is transformed during a single run +s=200 + ### HELPER FUNCTIONS ## function die() @@ -39,6 +42,7 @@ function usage() echo "run_bench: [options]* benchname" echo " -v: verbose mode" echo " -n count: number of execution for each bar (default: $count)" + echo " -s size: number of transformations for each run (default: $s)" echo " --dry: Do not run the commands, just reuse the data and generate the graph" echo " -h: this help" } @@ -49,6 +53,7 @@ while [ "$stop" = false ]; do -v) verbose=true; shift;; -h) usage; exit;; -n) count="$2"; shift; shift;; + -s) s="$2"; shift; shift;; --dry) dry_run=true; shift;; *) stop=true esac @@ -74,8 +79,6 @@ engdir="./engines" bncdir="./benches/out" mkdir -p $outdir -s=200 - function bench_nitmd() { name="$FUNCNAME" -- 1.7.9.5