Add genBench.sh

This commit is contained in:
Andrzej Rybczak 2023-01-22 18:40:35 +01:00
parent a3faef560d
commit f32126d4f7

22
genBench.sh Executable file
View File

@ -0,0 +1,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