Skip to content

Instantly share code, notes, and snippets.

@skaji
Last active July 8, 2017 04:09
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 skaji/b597ec5ecef28449527bb746ab53bd30 to your computer and use it in GitHub Desktop.
Save skaji/b597ec5ecef28449527bb746ab53bd30 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl6
use v6;
class Foo { }
my $start = now;
for ^30 {
try Foo.not-exists;
}
printf "Took %.3f sec\n", now - $start;
=finish
❯ ~/env/rakudobrew/moar-2017.04/install/bin/perl6 -v
This is Rakudo version 2017.04 built on MoarVM version 2017.04
implementing Perl 6.c.
❯ ~/env/rakudobrew/moar-2017.04/install/bin/perl6 test.p6
Took 0.004 sec
❯ ~/env/rakudobrew/moar-nom/install/bin/perl6 -v
This is Rakudo version 2017.06-172-gc76d9324a built on MoarVM version 2017.06-43-g45b008fb
implementing Perl 6.c.
❯ ~/env/rakudobrew/moar-nom/install/bin/perl6 test.p6
Took 4.903 sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment