-
-
Save jnthn/088f8e3de021460cccef5f857d5db9d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
multi fac($n where $n <= 1) { 1 } | |
multi fac($n) { $n * fac($n - 1) } | |
for ^100_000 { | |
fac(10) | |
} | |
say now - INIT now; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use nqp; | |
multi fac($n where $n <= 1) { 1 } | |
multi fac($n) { $n * nqp::dispatch('raku-call', &fac, $n - 1) } | |
for ^100_000 { | |
nqp::dispatch('raku-call', &fac, 10); | |
} | |
say now - INIT now; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jnthn@homedev:~/dev/rakudo$ ./rakudo-m where-head.raku | |
4.859758291 | |
jnthn@homedev:~/dev/rakudo$ RAKUDO_NEW_DISP=1 ./rakudo-m where-new-disp.raku | |
1.337807436 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment