Skip to content

Instantly share code, notes, and snippets.

@tony-o
Created August 20, 2015 15:44
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 tony-o/0b841686d7e00bc1e08c to your computer and use it in GitHub Desktop.
Save tony-o/0b841686d7e00bc1e08c to your computer and use it in GitHub Desktop.
tonyo@imac ~/projects/perl6-to-json$ ./bench.pl6
Benchmark:
Timing 1 iterations of built-in, json-fast, pp6...
built-in: 85.8942 wallclock secs @ 0.0116/s (n=1)
(warning: too few iterations for a reliable count)
json-fast: 86.6876 wallclock secs @ 0.0115/s (n=1)
(warning: too few iterations for a reliable count)
pp6: 2.0059 wallclock secs @ 0.4985/s (n=1)
(warning: too few iterations for a reliable count)
O-----------O--------O-----------O----------O------O
| | s/iter | json-fast | built-in | pp6 |
O===========O========O===========O==========O======O
| json-fast | 86.7 | -- | -1% | -98% |
| built-in | 85.9 | 1% | -- | -98% |
| pp6 | 2.01 | 4222% | 4182% | -- |
----------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment