Welcome to the CHICKEN Scheme pasting service

new srfi-41 lazy-seq benchmarks added by Lovett 1 days ago

#;1> ,l lazy-prime-numbers.scm 
#;1> (import srfi-41 streams-math lazy-seq lazy-prime-numbers)
#;2> (time (print (stream-car (stream-drop 1000 prime-numbers-stream))))
7927
0.079s CPU time, 95079/4228 mutations (total/tracked), 0/451 GCs (major/minor), maximum live heap: 1.77 MiB
#;3> (time (print (lazy-head (lazy-drop 1000 lazy-prime-numbers))))
7927
0.112s CPU time, 67976/6192 mutations (total/tracked), 0/624 GCs (major/minor), maximum live heap: 1.89 MiB
#;4> (time (print (stream-car (stream-drop 1000 prime-numbers-stream))))
7927
0.001s CPU time, 3049/516 mutations (total/tracked), 0/2 GCs (major/minor), maximum live heap: 1.83 MiB
#;5> (time (print (lazy-head (lazy-drop 1000 lazy-prime-numbers))))
7927
0.001s CPU time, 1029/3 mutations (total/tracked), 0/2 GCs (major/minor), maximum live heap: 1.87 MiB

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which backend storage does qwiki use?
Visually impaired? Let me spell it for you (wav file) download WAV