ms-queue: cleanups, convert to C11 atomics
[model-checker-benchmarks.git] / bench.sh
index 71fff6567935bde2732ee29b9ecc3af2aea032b5..c32924b8b68080a13ac39739d944a54e0571ac2d 100755 (executable)
--- a/bench.sh
+++ b/bench.sh
@@ -20,6 +20,7 @@ TESTS="barrier/barrier"
 TESTS+=" mcs-lock/mcs-lock"
 TESTS+=" spsc-queue/spsc-queue"
 TESTS+=" spsc-bugfix/spsc-queue"
+TESTS+=" dekker-fences/dekker-fences"
 TESTS+=" mpmc-queue/mpmc-2r1w"
 TESTS+=" mpmc-queue/mpmc-1r2w-noinit"
 TESTS+=" mpmc-queue/mpmc-queue-noinit"
@@ -40,7 +41,7 @@ function run_test {
        echo "Running test ${COUNT} (${t}): logging to ${LOG}"
        echo "ARGS=${ARGS}"
        echo "*******************************"
-       time ${RUN} ${t} ${ARGS} 2>&1 | tee ${LOG}
+       (time ${RUN} ${t} ${ARGS} 2>&1) 2>&1 | tee ${LOG}
        echo
        echo "Test done; sleeping for a few seconds"
        echo
@@ -61,4 +62,4 @@ function run_all_tests {
 }
 
 mkdir ${DIR}
-(git log --oneline -1; echo; run_all_tests) | tee ${DIR}/timing.log
+(cd ..; git log --oneline -1; cd - > /dev/null; git log --oneline -1; echo; run_all_tests) | tee ${DIR}/timing.log