Skip to content

Instantly share code, notes, and snippets.

@aslushnikov
Last active August 29, 2015 14:14
Show Gist options
  • Save aslushnikov/184b8be792373fee59c9 to your computer and use it in GitHub Desktop.
Save aslushnikov/184b8be792373fee59c9 to your computer and use it in GitHub Desktop.
Every testcase counts time of tokenizing via esprima.tokenize()
lushnikov:~/prog/esprima/test(master)$ node benchmarks
Doesn't have exposed gc().
Underscore 1.5.2 42.5 KiB 3.77 ms ± 2.60%
Backbone 1.1.0 58.7 KiB 4.74 ms ± 0.63%
MooTools 1.4.5 156.7 KiB 45.74 ms ± 2.32%
jQuery 1.9.1 262.1 KiB 58.39 ms ± 7.26%
YUI 3.12.0 330.4 KiB 49.95 ms ± 1.27%
jQuery.Mobile 1.4.2 442.2 KiB 95.95 ms ± 7.95%
Angular 1.2.5 701.7 KiB 79.69 ms ± 6.74%
inbox 1945.5 KiB 1749.02 ms ± 0.29%
------------------------
3939.8 KiB 2087.26 ms ± 2.52%
lushnikov:~/prog/esprima/test(sax)$ node benchmarks.js
Doesn't have exposed gc().
Underscore 1.5.2 42.5 KiB 6.14 ms ± 0.79%
Backbone 1.1.0 58.7 KiB 6.90 ms ± 0.82%
MooTools 1.4.5 156.7 KiB 30.32 ms ± 1.18%
jQuery 1.9.1 262.1 KiB 44.62 ms ± 1.37%
YUI 3.12.0 330.4 KiB 34.16 ms ± 0.59%
jQuery.Mobile 1.4.2 442.2 KiB 73.66 ms ± 1.12%
Angular 1.2.5 701.7 KiB 55.50 ms ± 0.53%
inbox 1945.5 KiB 851.61 ms ± 0.80%
------------------------
3939.8 KiB 1102.92 ms ± 0.85%
How much times SAX is faster then current tip-of-tree?
Underscore 1.5.2 42.5 KiB 0.61
Backbone 1.1.0 58.7 KiB 0.68
MooTools 1.4.5 156.7 KiB 1.50
jQuery 1.9.1 262.1 KiB 1.30
YUI 3.12.0 330.4 KiB 1.46
jQuery.Mobile 1.4.2 442.2 KiB 1.30
Angular 1.2.5 701.7 KiB 1.43
inbox 1945.5 KiB 2.05
------------------------
3939.8 KiB 1.89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment