forked from Mirkic7/mdcct
-
Notifications
You must be signed in to change notification settings - Fork 7
/
test.sh
executable file
·60 lines (51 loc) · 1.41 KB
/
test.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
echo "##################"
echo " TEST #1"
echo " 1 run, sync"
echo "##################"
OPTIONS="-n 8192 -m 8192"
rm plots/* plots-orig/*
time ./plot -k 12345 -x 1 -s 0 -d plots/ ${OPTIONS}
time ./plot-orig -k 12345 -x 1 -s 0 -d plots-orig/ ${OPTIONS}
md5sum plots/* plots-orig/*
time ./optimize plots-orig/*
md5sum plots/* plots-orig/*
echo
echo
echo "##################"
echo " TEST #2"
echo " Multiple runs, sync"
echo "##################"
OPTIONS="-n 8192 -m 512"
rm plots/* plots-orig/*
time ./plot -k 12345 -x 1 -s 0 -d plots/ ${OPTIONS}
time ./plot-orig -k 12345 -x 1 -s 0 -d plots-orig/ ${OPTIONS}
md5sum plots/* plots-orig/*
time ./optimize plots-orig/*
md5sum plots/* plots-orig/*
echo
echo
echo "##################"
echo " TEST #3"
echo " 1 run, async"
echo "##################"
OPTIONS="-n 8192 -m 8192 -a"
rm plots/* plots-orig/*
time ./plot -k 12345 -x 1 -s 0 -d plots/ ${OPTIONS}
time ./plot-orig -k 12345 -x 1 -s 0 -d plots-orig/ ${OPTIONS}
md5sum plots/* plots-orig/*
time ./optimize plots-orig/*
md5sum plots/* plots-orig/*
echo
echo
echo "##################"
echo " TEST #4"
echo " Multiple runs, async"
echo "##################"
OPTIONS="-n 8192 -m 512 -a"
rm plots/* plots-orig/*
time ./plot -k 12345 -x 1 -s 0 -d plots/ ${OPTIONS}
time ./plot-orig -k 12345 -x 1 -s 0 -d plots-orig/ ${OPTIONS}
md5sum plots/* plots-orig/*
time ./optimize plots-orig/*
md5sum plots/* plots-orig/*