From 116a5a97f600df811f0f14dd2134a72aece88fbf Mon Sep 17 00:00:00 2001 From: Miguel Date: Sat, 9 Mar 2019 18:12:22 +0100 Subject: optimized base64.hs quite a lot --- base64/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'base64/Makefile') diff --git a/base64/Makefile b/base64/Makefile index 629c734..0192413 100644 --- a/base64/Makefile +++ b/base64/Makefile @@ -1,10 +1,12 @@ +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 -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: -- cgit v1.2.3