diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-18 16:09:03 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-18 16:09:03 +0300 |
commit | a7331303162b4fb5d8d588938b9bb65688134488 (patch) | |
tree | ed8e87f730cf2f18c3cf9ef3c5f16f9f0b1b33c1 | |
parent | 6865f49dcca9de2921255fa89a99f1e7c941a6c7 (diff) | |
download | benchmarker-a7331303162b4fb5d8d588938b9bb65688134488.tar.gz |
let user choose what benchmarks to run
-rwxr-xr-x | benchmarker | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/benchmarker b/benchmarker index b83e5b9..da2ad06 100755 --- a/benchmarker +++ b/benchmarker @@ -49,5 +49,17 @@ netbench() rm -f "$filename" } -cpubench_xz -netbench +for bench in "$@" +do + case "$bench" in + cpu) + cpubench_xz + ;; + network) + netbench + ;; + *) + die "unknown benchmark type $bench" + ;; + esac +done |