Skip to content

Instantly share code, notes, and snippets.

@timo
Created August 4, 2015 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/647bba53b9820268558c to your computer and use it in GitHub Desktop.
Save timo/647bba53b9820268558c to your computer and use it in GitHub Desktop.
timo@schmetterling ~/perl6 [130]> perl6 glr.p6 benchmark
for loop over 'beer' xx 100000 ==> was 0.0619843006134033s, now 0.0608002344767253s
for loop over 'beer' xx 100000 with map ==> was 3.70370244979858s, now 0.212890068689982s
for loop over ('beer' xx 100000) in a list (so must remember values) ==> was 0.0596471627553304s, now 0.14594308535258s
for loop over ('beer' xx 100000) in a list, mapping it with *.uc ==> was 3.69753980636597s, now 0.390150944391886s
for loop over ('beer' xx 100000).map(*.uc) in a list ==> was 3.67367776234945s, now 0.610053618748983s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment