-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathgenBench.sh
executable file
·22 lines (19 loc) · 1.07 KB
/
genBench.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
cabal run bench -- --pattern '$2 == "countdown" && $3 == "1000"' --svg bench_countdown_1000.svg
cabal run bench -- --pattern '$2 == "countdown" && $3 == "2000"' --svg bench_countdown_2000.svg
cabal run bench -- --pattern '$2 == "countdown" && $3 == "3000"' --svg bench_countdown_3000.svg
cabal run bench -- --pattern '$2 == "filesize" && $3 == "1000"' --svg bench_filesize_1000.svg
cabal run bench -- --pattern '$2 == "filesize" && $3 == "2000"' --svg bench_filesize_2000.svg
cabal run bench -- --pattern '$2 == "filesize" && $3 == "3000"' --svg bench_filesize_3000.svg
convert bench_countdown_1000.svg bench_countdown_1000.png
convert bench_countdown_2000.svg bench_countdown_2000.png
convert bench_countdown_3000.svg bench_countdown_3000.png
convert bench_filesize_1000.svg bench_filesize_1000.png
convert bench_filesize_2000.svg bench_filesize_2000.png
convert bench_filesize_3000.svg bench_filesize_3000.png
rm bench_countdown_1000.svg
rm bench_countdown_2000.svg
rm bench_countdown_3000.svg
rm bench_filesize_1000.svg
rm bench_filesize_2000.svg
rm bench_filesize_3000.svg