-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_microbenchmarks.sh
executable file
·60 lines (44 loc) · 1.41 KB
/
run_microbenchmarks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
set -e
set -o pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
source $DIR/common.sh
setup "$1"
###############
# Coremark pro
###############
# echo "Running CPU Microbenchmark [Coremarkpro]"
#
# # Clear previous file
# clear_stats_entries "coremarkpro_$1"
#
# add_miralis_stat_entry "coremarkpro_$1"
# RemoteExec $ADDRESS "./microbenchmark_cpu.sh" > "results/coremarkpro_$1.txt"
# add_miralis_stat_entry "coremarkpro_$1"
#
# echo "Done with CPU microbenchmark"
###############
# Iozone
###############
echo "Running filesystem microbenchmark [Filesystem]"
# Clear previous file
clear_stats_entries "iozone_$1"
add_miralis_stat_entry "iozone_$1"
RemoteExec $ADDRESS "./microbenchmark_fs.sh" > "results/iozone_$1.txt"
add_miralis_stat_entry "iozone_$1"
echo "Done with disk microbenchmark"
###############
# Netperf
###############
echo "Running network microbenchmark [netperf]"
# Start network server
RemoteExec $ADDRESS "./microbenchmark_network.sh $1"
# Clear previous file
clear_stats_entries "netperf_$1"
# Launch remote benchmarks
add_miralis_stat_entry "netperf_$1"
netperf -H $(echo "$ADDRESS" | cut -d'@' -f2-) -t TCP_STREAM -l 30 > "results/netperf_$1_tcp.txt"
add_miralis_stat_entry "netperf_$1"
netperf -H $(echo "$ADDRESS" | cut -d'@' -f2-) -t UDP_STREAM -l 30 > "results/netperf_$1_udp.txt"
add_miralis_stat_entry "netperf_$1"
echo "Done with network microbenchmark"