-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_benchmarks_final.sh
More file actions
executable file
·56 lines (52 loc) · 1.64 KB
/
run_benchmarks_final.sh
File metadata and controls
executable file
·56 lines (52 loc) · 1.64 KB
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
#!/bin/bash
function removeModules {
rmmod bewalgo_parallel_compressor
rmmod bewalgo_parallel_compress_worker
rmmod bewalgo_linear_compressor_U32
rmmod bewalgo_page_compressor_U32
rmmod bewalgo_linear_compressor_U64
rmmod bewalgo_page_compressor_U64
rmmod lz4_compressor
rmmod lz4_linear_compress
rmmod lz4_linear_decompress
rmmod lz4_pages_compress
rmmod lz4_pages_decompress
rmmod lz4_linear_hc_compress
rmmod linear_compressor_memcpy
rmmod pages_compressor_memcpy
}
function cleanAll {
removeModules
cd parallel/test && make clean && cd ../..
cd lz4/test && make clean && cd ../..
cd memcpy/test && make clean && cd ../..
cd bewalgo/test && make clean && cd ../..
cd bewalgo-if-vs-terniary/test && make clean && cd ../..
cd bewalgo-boolean-vs-binary-operator/test && make clean && cd ../..
cd bewalgo-no-inline/test && make clean && cd ../..
cd bewalgo-find-match-only/test && make clean && cd ../..
cd lz4-find-match-only/test && make clean && cd ../..
cd lz4-no-inline/test && make clean && cd ../..
}
cleanAll
currentpath=`pwd`
rm -f 1 2 3 4 5
echo "" > status.out
echo "" > nohup.out
chown benjamin:benjamin nohup.out
chown benjamin:benjamin status.out
for j in 1 2 3 4 5 6
do
echo "major number : ${j}" >> "${currentpath}/status.out"
for module in "memcpy" "lz4" "bewalgo" "parallel" "lz4-no-inline" "lz4-find-match-only" "bewalgo-no-inline" "bewalgo-find-match-only" "bewalgo-if-vs-terniary" "bewalgo-boolean-vs-binary-operator"
do
for i in 1 2 3 4 5
do
removeModules
echo "${module}-${i}-final" >> "${currentpath}/status.out"
cd "${currentpath}/${module}/test" && ./run_benchmarks_final.sh
done
exit 0
done
cleanAll
done