From a9a0159046c3f521e0c82c6ad72d4586d943f418 Mon Sep 17 00:00:00 2001 From: Laurent MAZET Date: Thu, 2 Oct 2025 19:27:42 +0200 Subject: [PATCH] update scripts --- sync.sh | 2 +- test.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sync.sh b/sync.sh index ad85a02..41b739f 100755 --- a/sync.sh +++ b/sync.sh @@ -2,6 +2,6 @@ # ssh-keygen # cat ~/.ssh/id_rsa.pub | ssh mazet@192.168.1.1 "cat >> ~/.ssh/authorized_keys" -for f in cyclictest getinfo.sh gettable.awk hackbench load.exe mq.exe mutex.exe pipe.exe semaphore.exe test.sh thread.exe udp.exe; do +for f in cyclictest hackbench '*.exe' '*.sh'; do scp mazet@192.168.1.1:benchmarks/$f . done diff --git a/test.sh b/test.sh index ee986e6..e4bd24e 100755 --- a/test.sh +++ b/test.sh @@ -4,10 +4,11 @@ export pid function run() { load=$1 - for test in mutex semaphore thread mq pipe udp; do + for exe in *.exe; do + test=${exe/.exe/} ./getinfo.sh | tee $test-$load.log pid=-1 - { ./$test.exe -d 1 -n 10000 -s -o $test-$load.dat | tee -a $test-$load.log; \ + { ./$exe -d 1 -n 10000 -s -o $test-$load.dat | tee -a $test-$load.log; \ kill -2 $(ps -e | awk '/[h]ackbench/ || /[s]leep/ { print $1 }') 2>/dev/null; } & case "$load" in 0%) sleep 60;; -- 2.30.2