diff options
author | Andres Erbsen <andreser@google.com> | 2017-11-16 16:44:25 +0000 |
---|---|---|
committer | Andres Erbsen <andreser@google.com> | 2017-11-16 16:46:51 +0000 |
commit | 5ecee7af922212e2de3774ef654fb0bf24354830 (patch) | |
tree | a46a54114c232b0437373bcf0cb35ca3b95dc9fb /measurements/2017-11-16/bench.sh | |
parent | 86fde84e8aa6415bc6952361889f2c0a7a43cc51 (diff) |
clean Haswell benchmarks
Diffstat (limited to 'measurements/2017-11-16/bench.sh')
-rw-r--r-- | measurements/2017-11-16/bench.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/measurements/2017-11-16/bench.sh b/measurements/2017-11-16/bench.sh new file mode 100644 index 000000000..9d611769f --- /dev/null +++ b/measurements/2017-11-16/bench.sh @@ -0,0 +1,26 @@ +#!/bin/sh +set -e +for p in $(cat primes.txt | sed 's:#.*::g' | grep . | tr -d ' ' | tr '^*+-' 'expm'); do + for synth in solinas64 solinas32 montgomery64 montgomery32; do + impls=$(ls -d "src/Specific/${synth}_${p}_"*"limbs" 2>/dev/null || true) + if [ -z "$impls" ]; then + printf "# MISSING src/Specific/%s_%s_*limbs\n" "$synth" "$p"; + continue + fi + for impl in $impls; do + if [ ! -x "$impl/fibe" ]; then + printf "# MISSING %s\n" "$impl/fibe" + continue + fi + /usr/bin/time -f "$impl/fibe\t%e" "$impl/fibe" + done + done + for ref in gmpvar gmpsec gmpxx; do + impl=$(ls -d "src/Specific/montgomery64_$p"* 2>/dev/null || true) + if [ ! -x "$impl/$ref" ]; then + printf "# MISSING %s\n" "$impl/$ref" + continue + fi + /usr/bin/time -f "$impl/$ref\t%e" "$impl/$ref" + done +done |