update scripts
[tsan11-tsan11rec-docker.git] / scripts / app_test_all.sh
1 #!/bin/bash
2
3 TOTAL_RUN=$1
4
5 if [ -z "$1" ]; then
6         TOTAL_RUN=10
7 fi
8
9 # Clear data
10 rm *.log 2> /dev/null
11
12 echo "** Performance test for application benchmarks **"
13 # Run in all-core configuration
14 if [ ! -d "all-core" ]; then
15         mkdir all-core
16 fi
17
18 echo "Running each benchmark with multiple cores for ${TOTAL_RUN} times"
19 #rm all-core/*.log 2> /dev/null
20 ./run.sh $TOTAL_RUN
21 mv *.log all-core
22 echo "Done"
23 python calculator.py all-core
24
25 # Run in single-core configuration
26 if [ ! -d "single-core" ]; then
27         mkdir single-core
28 fi
29
30 echo "Running each benchmark with a single core for ${TOTAL_RUN} times"
31 #rm single-core/*.log 2> /dev/null
32 taskset -c 0 ./run.sh $TOTAL_RUN
33 mv *.log single-core
34 echo "Done"
35 python calculator.py single-core
36