blob: 629c73466a6e0f4fee215084c1b4e3f32c878378 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
run: base64
./base64 10 100 +RTS -N2
#cat /tmp/random.bin | ./base64 +RTS -N6 > /dev/null
run-prof: base64prof
cat /tmp/random.bin | ./base64prof +RTS -N6 -p -s > /dev/null
base64: base64.hs
stack ghc -- -O2 base64.hs -threaded -o base64
base64prof: base64.hs
stack ghc -- -threaded -rtsopts -prof -fprof-auto -fprof-cafs -O2 base64.hs -o base64prof
genrandom:
dd if=/dev/urandom of=/tmp/random.bin bs=1M count=64
|