aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"