15 lines
349 B
Bash
15 lines
349 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
if [[ $# -lt 4 ]]; then
|
||
|
|
echo "Usage: $0 <threads> <seconds> <min> <max>"
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
thr=$1; dur=$2; min=$3; max=$4
|
||
|
|
|
||
|
|
# Map to our larson_hakmem args: sleep_cnt min max chperthread num_rounds seed max_threads
|
||
|
|
ch=1024; rounds=1; seed=12345
|
||
|
|
./larson_hakmem "$dur" "$min" "$max" "$ch" "$rounds" "$seed" "$thr"
|
||
|
|
|