File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "name" : " initialize" ,
33 "cachegrind" : false ,
44 "instructions" : true ,
5- "iterations" : 100 ,
6- "timeout" : 15 ,
5+ "iterations" : 10 ,
6+ "timeout" : 30 ,
77 "variants" : {
88 "main" : {
99 "run" : " node ./init.js" ,
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ run_benchmark() {
6363 echo " running ${dir} /${variant} in background, pinned to core ${CPU_AFFINITY} ..."
6464
6565 export SIRUN_VARIANT=$variant
66- (time node ../run-one-variant.js >> ../results.ndjson && echo " ${D } /${V } finished." )
67-
66+ (time node ../run-one-variant.js >> ../results.ndjson && echo " ${dir } /${variant } finished." )
67+
6868 cd ..
6969
7070 echo " 1" > " core_${cpu_id} .lock_core"
@@ -77,15 +77,25 @@ for dir in "${DIRS[@]}"; do
7777 variants=" $( node ../get-variants.js) "
7878 node ../squash-affinity.js
7979 cd ..
80- for variant in $variants ; do
80+ for variant in $variants ; do
8181 cpu_id=$( get_next_available_core)
8282 echo " 0" > " core_${cpu_id} .lock_core"
8383
8484 run_benchmark $dir $variant $cpu_id &
85+ pids+=($! )
8586 done
8687done
8788
88- wait
89+ failed=0
90+ for pid in " ${pids[@]} " ; do
91+ if ! wait " $pid " ; then
92+ failed=1
93+ fi
94+ done
95+
96+ if [ " $failed " -eq 1 ]; then
97+ exit 1
98+ fi
8999
90100node ./strip-unwanted-results.js
91101
You can’t perform that action at this time.
0 commit comments