Skip to content

Instantly share code, notes, and snippets.

@jcoglan
Created April 21, 2015 20:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcoglan/d98f3f04e98257fa0c6f to your computer and use it in GitHub Desktop.
Save jcoglan/d98f3f04e98257fa0c6f to your computer and use it in GitHub Desktop.
$ node examples/javascript.js

Canopy Lisp x 5,223 ops/sec ±1.01% (93 runs sampled)
PEG.js Lisp x 2,185 ops/sec ±2.94% (88 runs sampled)
Canopy PEG x 208 ops/sec ±4.48% (85 runs sampled)
PEG.js PEG x 122 ops/sec ±2.58% (72 runs sampled)
$ py.test examples/python.py

Name (time in ms)                    Min      Max     Mean  StdDev  Rounds  Iterations
--------------------------------------------------------------------------------------
test_canopy_parse_lisp            2.2879   4.2360   2.3693  0.2121     275           1
test_parsimonious_parse_lisp      3.4900   5.0471   3.5682  0.2141     256           1
test_canopy_parse_peg            48.7640  67.3039  53.4444  5.6759      15           1
test_parsimonious_parse_peg      57.3299  75.9330  61.1572  5.8624      17           1
--------------------------------------------------------------------------------------
$ ruby examples/ruby.rb

         Canopy Lisp    586.278  (± 3.2%) i/s -      2.964k
         Citrus Lisp    617.580  (± 3.4%) i/s -      3.111k
        Parslet Lisp    108.622  (± 5.5%) i/s -    550.000
        Treetop Lisp    312.907  (± 5.4%) i/s -      1.560k
          Canopy PEG     32.787  (± 3.0%) i/s -    165.000
          Citrus PEG     11.603  (± 8.6%) i/s -     58.000
         Parslet PEG      8.189  (± 0.0%) i/s -     41.000
         Treetop PEG     18.372  (±10.9%) i/s -     91.000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment