github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/queues/runbench.sh (about) 1 #!/bin/bash 2 3 # the tests must use fixed benchIterations 4 # this makes it avoid infinite-loop 5 # -benchtime=0.1s 6 go test -cpu=1,2,5,10,100 -benchtime=0.1s -timeout=1h -bench . > benchmark.txt