Skip to content

Commit 831d66d

Browse files
kylincasterdeepseek-v4-pro[1m]
andcommitted
bench_test.sh: accept optional count argument, default 300
Co-Authored-By: deepseek-v4-pro[1m] <deepseek-ai@claude-code-best.win>
1 parent 140f6a1 commit 831d66d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tools/bench_test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/bash
22

3-
COUNT=300
3+
COUNT=${1:-300}
44

55
for ((i=1; i<=COUNT; i++)); do
66
N=$((RANDOM % 6 + 1))
77
Y=$((RANDOM % 31 + 5))
88

99
echo "[$i/$COUNT] N=$N Y=$Y"
1010

11-
task-spooler -N "$N" mpirun -np "$N" mpi_pi "$Y"
11+
task-spooler -N "$N" mpirun -np "$N" ../tools/mpi_pi "$Y"
12+
sleep 0.1
1213
done

0 commit comments

Comments
 (0)