Skip to content

Instantly share code, notes, and snippets.

@klauspost
Created May 17, 2023 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klauspost/70b5156420423e6412fab975753b54e5 to your computer and use it in GitHub Desktop.
Save klauspost/70b5156420423e6412fab975753b54e5 to your computer and use it in GitHub Desktop.
Benchmark script.
#!/bin/sh
./cpuid >benchmark.txt
RS_BLOCKS=1024
RS_PARAMS="-csv -size=1MiB"
RS_K=12
RS_M=4
./benchmark -blocks=$RS_BLOCKS -cpu=1 -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=2 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=4 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=8 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=12 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=16 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=20 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=24 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=28 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=32 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=40 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=48 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=56 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=64 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=72 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=80 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=88 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=96 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=104 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=112 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=120 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=128 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
RS_K=8
RS_M=8
./benchmark -blocks=$RS_BLOCKS -cpu=1 -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=2 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=4 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=8 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=12 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=16 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=20 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=24 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=28 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=32 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=40 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=48 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=56 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=64 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=72 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=80 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=88 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=96 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=104 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=112 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=120 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=128 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
RS_K=4
RS_M=4
./benchmark -blocks=$RS_BLOCKS -cpu=1 -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=2 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=4 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=8 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=12 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=16 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=20 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=24 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=28 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=32 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=40 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=48 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=56 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=64 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=72 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=80 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=88 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=96 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=104 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=112 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=120 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=128 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
RS_PARAMS="-csv -size=1MiB -gfni=false"
RS_K=12
RS_M=4
./benchmark -blocks=$RS_BLOCKS -cpu=1 -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=2 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=4 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=8 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=12 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=16 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=20 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=24 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=28 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=32 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=40 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=48 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=56 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=64 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=72 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=80 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=88 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=96 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=104 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=112 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=120 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=128 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
RS_BLOCKS=32
RS_PARAMS="-csv -progress=false"
RS_K=12
RS_M=4
./benchmark -blocks=$RS_BLOCKS -cpu=1 -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=2 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=4 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=8 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=12 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=16 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=20 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=24 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=28 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
./benchmark -concurrent -cpu=32 -blocks=$RS_BLOCKS -k=$RS_K -m=$RS_M $RS_PARAMS >>benchmark.txt
cat /proc/cpuinfo >>benchmark.txt
./mc mb -p --with-versioning play/benchies&&./mc cp benchmark.txt play/benchies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment