This repository has been archived by the owner on May 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
97 lines (73 loc) · 2.27 KB
/
Makefile
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
prepare_lmbench:
@echo "Preparing lmbench"
mkdir -p build
cd build && git clone https://github.com/dmonakhov/lmbench.git
cd build/lmbench && git checkout eb0d55e8999d1275da480aff0fca98805e55916e
prepare_unixbench:
@echo "Preparing unixbench"
mkdir -p build
cd build && git clone https://github.com/kdlucas/byte-unixbench.git
cd build/byte-unixbench && git checkout aeed2ba662a9220089aee33be4123481dab0b524
prepare_pgbench:
@echo "Preparing pgbench"
pgbench -i -s 70 bench2
prepare_postmark:
@echo "Preparing postmark"
mkdir -p build/postmark
cp -f src/postmark-1_5.c build/postmark/postmark-1_5.c
cd build/postmark && cc -o postmark postmark-1_5.c
@echo "Please ignore warning"
prepare:prepare_lmbench prepare_unixbench prepare_pgbench prepare_postmark
service_off:
-sudo systemctl stop camflowd.service
whole:
sudo camflow -e true
sudo camflow -a true
selective:
sudo camflow -e true
sudo camflow -a false
off:
sudo camflow -e false
sudo camflow -a false
run_lmbench:
@echo "Running lmbench..."
mkdir -p results
cd build/lmbench && make results
cd build/lmbench && make rerun
cd build/lmbench/results/ && make > ../../../results/lmbench.txt
run_unixbench:
@echo "Running unixbench..."
mkdir -p results
cd build/byte-unixbench/UnixBench && ./Run > ../../../results/unixbench.txt
run_postmark:
@echo "set size 4096 102400"
@echo "set subdirectories 10"
@echo "set number 4500"
@echo "set transactions 1500000"
cd build/postmark && ./postmark
run_kernel:
phoronix-test-suite benchmark pts/build-linux-kernel-1.7.0
run_R:
phoronix-test-suite benchmark pts/rbenchmark-1.0.2
run_unpack:
phoronix-test-suite benchmark pts/unpack-linux-1.0.0
run_apache:
phoronix-test-suite benchmark pts/apache-1.6.1
run_nginx:
phoronix-test-suite benchmark pts/nginx-1.1.0
run_mcperf:
phoronix-test-suite benchmark pts/mcperf-1.0.0
run_phpbench:
phoronix-test-suite benchmark pts/phpbench-1.1.1
run_pybench:
phoronix-test-suite benchmark pts/pybench-1.0.0
run_redis:
phoronix-test-suite benchmark pts/redis-1.0.0
run_pgbench:
phoronix-test-suite benchmark pts/pgbench-1.5.2
run_network:
phoronix-test-suite benchmark pts/network-loopback-1.0.1
run: run_lmbench run_unixbench run_pgbench run_postmark run_kernel run_R run_unpack run_apache
clean:
rm -rf build
rm -rf results