aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-08-11 00:20:47 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-08-14 20:02:42 -0700
commit3fd4cb8b7b60052cb580ce81a902a5f06837a140 (patch)
tree00b6eaf716d5904cc622ee4853a83b6bb9b22c7c
parentd17909c82b03ad0427a285c66766421751546c42 (diff)
test/just_bench.sh
Until the whole bench submission framework is complete, here is the best way to submit bench results to hardinfo. * Run just_bench.sh to create a conf with results * Merge those results into benchmark.conf using crudini * Submit a pull request Signed-off-by: Burt P <pburt0@gmail.com>
-rw-r--r--test/just_bench.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/just_bench.sh b/test/just_bench.sh
new file mode 100644
index 00000000..b6bffcb2
--- /dev/null
+++ b/test/just_bench.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+#
+# bash just_bench.sh >whatever.conf
+#
+# hardinfo PR instructions:
+# crudini --merge ../data/benchmark.conf < whatever.conf
+# git checkout -b br_whatever
+# git add ../data/benchmark.conf
+# git commit -m "bench_result: whatever"
+# git push -u <github_fork_origin> br_whatever
+# https://github.com/lpereira/hardinfo/pulls
+
+USER_NOTE="$1"
+
+do_hi_bench() {
+ sleep 1
+ echo "[$1]"
+ if [ "$USER_NOTE" != "" ]; then
+ hardinfo -b "$1" -g conf -u "$USER_NOTE"
+ else
+ hardinfo -b "$1" -g conf
+ fi
+}
+
+do_hi_bench "CPU Blowfish (Single-thread)"
+do_hi_bench "CPU Blowfish (Multi-thread)"
+do_hi_bench "CPU Blowfish (Multi-core)"
+do_hi_bench "CPU CryptoHash"
+do_hi_bench "CPU Fibonacci"
+do_hi_bench "CPU N-Queens"
+do_hi_bench "CPU Zlib"
+do_hi_bench "FPU FFT"
+do_hi_bench "FPU Raytracing"
+#do_hi_bench "GPU Drawing"