-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeasurements.sh
executable file
·68 lines (55 loc) · 1.42 KB
/
measurements.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
60
61
62
63
64
65
66
file_name=$1
jemalloc_path=$2
if [ ! -f "$file_name" ]
then
echo "File $file not found!"
exit 1
fi
for i in 1 2 3 4 5
do
echo "Running sequential"
./HuffmanProject $file_name binary seq
done
for i in 2 4 8 16 32 64 128
do
for j in 1 2 3 4 5
do
echo "Running $i threads version"
./HuffmanProject $file_name binary t $i
done
done
for i in 2 4 8 16 32 64 128
do
for j in 1 2 3 4 5
do
echo "Running fastflow with $i threads"
./HuffmanProject $file_name binary ff $i
done
done
mv measurements/seq.csv measurements/seq-nojemalloc.csv
mv measurements/threads.csv measurements/threads-nojemalloc.csv
mv measurements/ff.csv measurements/ff-nojemalloc.csv
echo "Running sequential (jemalloc)"
for i in 1 2 3 4 5
do
LD_PRELOAD=$jemalloc_path ./HuffmanProject $file_name binary seq
done
for i in 2 4 8 16 32 64 128
do
for j in 1 2 3 4 5
do
echo "Running $i threads version (jemalloc)"
LD_PRELOAD=$jemalloc_path ./HuffmanProject $file_name binary t $i
done
done
for i in 2 4 8 16 32 64 128
do
for j in 1 2 3 4 5
do
echo "Running fastflow version ($i threads) (jemalloc) "
LD_PRELOAD=$jemalloc_path ./HuffmanProject $file_name binary ff $i
done
done
mv measurements/seq.csv measurements/seq-jemalloc.csv
mv measurements/threads.csv measurements/threads-jemalloc.csv
mv measurements/ff.csv measurements/ff-jemalloc.csv