Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created August 9, 2016 18:52
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 zoffixznet/39bea0d017ad2f2f4f75519e080d26c7 to your computer and use it in GitHub Desktop.
Save zoffixznet/39bea0d017ad2f2f4f75519e080d26c7 to your computer and use it in GitHub Desktop.
zoffix@:~$ time perl -e 'my $i = 0; for (1..20_000_000) { $i = $i + $_ }'
real 0m1.345s
user 0m1.320s
sys 0m0.020s
zoffix@:~$ time perl6 -e 'my $i = 0; for (1..20_000_000) { $i = $i + $_ }'
real 0m30.821s
user 0m30.446s
sys 0m0.336s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment