tree: 57974d595928e6c20a55511ba23dd83e5632c8c0 [path history] [tgz]
  1. LICENSE
  2. Readme.md
  3. asts.js
  4. asts/
  5. index.js
  6. old.js
  7. package.json
  8. trace_cycle.js
  9. v8_trace
  10. v8_trace_reports/
benchmark/Readme.md

esotope benchmark

This benchmark compares esotope and escodegen performance.

Usage

$ cd benchmark/
$ npm install && npm test

Results

Machine used: Intel Core i7-2700K @ 3.50GHz, 8 GB RAM, Windows 8 64-bit, node 64-bit

With node v0.10.32:

esotope x 13.93 ops/sec ±3.45% (40 runs sampled)
escodegen x 6.61 ops/sec ±0.83% (21 runs sampled)
Fastest is esotope
esotope is x2.11 times faster vs escodegen.

With node v0.11.14 (with newer v8 version):

esotope x 17.57 ops/sec ±0.60% (48 runs sampled)
escodegen x 3.81 ops/sec ±3.94% (14 runs sampled)
Fastest is esotope
esotope is x4.61 times faster vs escodegen.