Skip to content

Instantly share code, notes, and snippets.

@christkv
Last active August 29, 2015 14:23
Show Gist options
  • Save christkv/e80679895ac50b286225 to your computer and use it in GitHub Desktop.
Save christkv/e80679895ac50b286225 to your computer and use it in GitHub Desktop.

Start Suite: legacy js parser

  • {'hello': 'world', n: 0} x 251,461 ops/sec ±2.07% (86 runs sampled)
  • {'hello': 'world', n: 0, doc: { a: 1}} x 112,596 ops/sec ±1.72% (85 runs sampled)
  • {'hello': 'world', n: 0, doc: { a: 1, b: { 'hello': 'again' }}} x 69,673 ops/sec ±3.34% (86 runs sampled)

Start Suite: legacy c++ parser

  • {'hello': 'world', n: 0} x 645,325 ops/sec ±0.92% (97 runs sampled)
  • {'hello': 'world', n: 0, doc: { a: 1}} x 350,544 ops/sec ±1.40% (95 runs sampled)
  • {'hello': 'world', n: 0, doc: { a: 1, b: { 'hello': 'again' }}} x 231,436 ops/sec ±2.54% (89 runs sampled)

Start Suite: single buffer allocation with copy parser

  • {'hello': 'world', n: 0} x 417,966 ops/sec ±0.96% (98 runs sampled)
  • {'hello': 'world', n: 0, doc: { a: 1}} x 235,018 ops/sec ±0.97% (99 runs sampled)
  • {'hello': 'world', n: 0, doc: { a: 1, b: { 'hello': 'again' }}} x 149,856 ops/sec ±1.00% (95 runs sampled)

Start Suite: faster parser prototype

  • {'hello': 'world', n: 0} x 290,300 ops/sec ±1.03% (92 runs sampled)
  • {'hello': 'world', n: 0, doc: { a: 1}} x 176,210 ops/sec ±0.80% (96 runs sampled)
  • {'hello': 'world', n: 0, doc: { a: 1, b: { 'hello': 'again' }}} x 84,884 ops/sec ±2.20% (87 runs sampled)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment