Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 18, 2017 12:43
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 Whateverable/88a69ba870c1259ccfa919d2acea44f4 to your computer and use it in GitHub Desktop.
Save Whateverable/88a69ba870c1259ccfa919d2acea44f4 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD use nqp; sub a(\a, \b) { my \in := nqp::p6argvmarray; nqp::p6bindattrinvres(nqp::create(List),List,'$!reified',in) }; a($_, $_) for ^1000000 ||| use nqp; sub b(\a, \b) { nqp::p6bindattrinvres(nqp::create(List),List,'$!reified',nqp::list(a,b)) }; b($_, $_) for ^1000000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 3.1692 wallclock secs @ 3.1554/s (n=10)
1: 1.7241 wallclock secs @ 5.8002/s (n=10)
O---O--------O------O-----O
| | Rate | 1 | 0 |
O===O========O======O=====O
| 1 | 5.80/s | -- | 84% |
| 0 | 3.16/s | -46% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment