summaryrefslogtreecommitdiff
path: root/base64/Makefile
blob: 01924135762fda980e3728d681b5d7db4315b9d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
base64: base64.hs
	#stack ghc -- -O2 base64.hs   -rtsopts -prof -fprof-cafs -fprof-auto
	stack ghc -- -O2 base64.hs   

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
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