-
Notifications
You must be signed in to change notification settings - Fork 0
/
README-benchmark.txt
62 lines (52 loc) · 1.24 KB
/
README-benchmark.txt
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
60
61
62
#
# Building and running Swift benchmark suite on Linux
#
# Mikio Takeuchi
#
#
# prereq:
# operf command (rather then old opcontrol command)
# vmlinux file (for kernel symbol, optional)
#
#
# execute the following once to collect kernel module samples
#
sudo sh -c "echo 0 > /proc/sys/kernel/kptr_restrict"
#
# execute the following once to avoid "Unexpected error running operf: Permission denied"
#
sudo sh -c "echo 1 > /proc/sys/kernel/perf_event_paranoid"
#
# deep copy benchmark directory in order not to polute repository
#
cp -R ../swift/benchmark .
cd benchmark
#
# apply patch for linux
#
patch -p1 < ../benchmark-patch.txt
#
# build on linux
#
chmod +x *.sh
./build.sh
#
# normal run
#
./list.sh > list.txt
./run.sh
#
# profiling run with operf
#
./run-operf.sh
#
# additional steps to draw nice chart with excel
#
cd ..
./build-processor.sh
./run-processor.sh
# open benchmark-results.xlsx with excel.
# then import output.csv as a new sheet.
# copy and paste the imported data to the existing 'output.csv' sheet.
# goto the DataByMain sheet and sort the data again, then you will see the updated chart in the ChartByMain sheet.
# goto the DataByARC sheet and sort the data again, then you will see the updated chart in the ChartByARC sheet.