Skip to content

mcmayer/lazy-random-bytestring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazy-random-bytestring

Repo for a Stackoverflow question.

Main.hs has all the code, make prof runs the profiler.

Profiling results

Variant Desc bytes
lazyRandomByteString1 Recurse with cons 1,032,068,448
lazyRandomByteString2 Recurse with foldr 689,582,816
lazyRandomByteString3 Use Builder 745,111,152