GithubHelp home page GithubHelp logo

phra / benchmark-node-json-parse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ahmadnassri/benchmark-node-json-parse

0.0 2.0 0.0 13 KB

What is the fastest method to parse JSON files?

JavaScript 100.00%

benchmark-node-json-parse's Introduction

[Benchmark]: JSON Parsing

Libraries Tested

Note: for a more detailed performance study on why you shouldn't use clarinet (and others) when you just need JSON.parse, please refer to this article

Results

Node.js v5.7.x (Apr, 02, 2016)

Fastest
  JSON.parse        x 80,639 ops/sec ±2.14% (88 runs sampled)
Slowest
  stream-json       x  1,775 ops/sec ±1.14% (82 runs sampled)
Results
  clarinet          x  2,636 ops/sec ±2.13% (78 runs sampled)
  JSON.parse        x 80,639 ops/sec ±2.14% (88 runs sampled)
  jju               x  7,343 ops/sec ±3.12% (84 runs sampled)
  jsonparse         x 10,719 ops/sec ±4.54% (45 runs sampled)
  json-parse-stream x  2,039 ops/sec ±6.39% (69 runs sampled)
  stream-json       x  1,775 ops/sec ±1.14% (82 runs sampled)
  vuvuzela          x 15,644 ops/sec ±4.07% (87 runs sampled)

Node.js v4.2.x (Nov 5, 2015)

Fastest
  JSON.parse        x 68.28 ops/sec ±4.43% (59 runs sampled)
Slowest
  stream-json       x  2.75 ops/sec ±7.05% (18 runs sampled)
Results
  JSON.parse        x 68.28 ops/sec ±4.43% (59 runs sampled)
  vuvuzela          x 14.38 ops/sec ±4.32% (40 runs sampled)
  jsonparse         x  6.39 ops/sec ±12.12% (20 runs sampled)
  jju               x  6.08 ops/sec ±15.54% (20 runs sampled)
  clarinet          x  5.56 ops/sec ±2.93% (32 runs sampled)
  json-parse-stream x  4.91 ops/sec ±3.03% (28 runs sampled)
  stream-json       x  2.75 ops/sec ±7.05% (18 runs sampled)

Node.js v0.12.x (Jul 24, 2015)

Fastest
  JSON.parse        x 55,607 ops/sec ±0.70% (93 runs sampled)
Slowest
  stream-json       x    374 ops/sec ±1.98% (76 runs sampled)
Results
  JSON.parse        x 55,607 ops/sec ±0.70% (93 runs sampled)
  vuvuzela          x 10,932 ops/sec ±0.92% (92 runs sampled)
  jju               x  4,914 ops/sec ±0.52% (94 runs sampled)
  jsonparse         x    553 ops/sec ±1.10% (79 runs sampled)
  json-parse-stream x    388 ops/sec ±3.31% (69 runs sampled)
  clarinet          x    386 ops/sec ±2.72% (69 runs sampled)
  stream-json       x    374 ops/sec ±1.98% (76 runs sampled)

Node.js v0.10.x (Jul 24, 2015)

Fastest
  JSON.parse        x 72,275 ops/sec ±1.55% (91 runs sampled)
Slowest
  stream-json       x    416 ops/sec ±2.22% (78 runs sampled)
Results
  JSON.parse        x 72,275 ops/sec ±1.55% (91 runs sampled)
  vuvuzela          x 11,009 ops/sec ±1.91% (91 runs sampled)
  jju               x  3,716 ops/sec ±4.34% (85 runs sampled)
  jsonparse         x    621 ops/sec ±2.86% (75 runs sampled)
  clarinet          x    427 ops/sec ±2.40% (72 runs sampled)
  json-parse-stream x    426 ops/sec ±2.21% (74 runs sampled)
  stream-json       x    416 ops/sec ±2.22% (78 runs sampled)

benchmark-node-json-parse's People

Contributors

greenkeeperio-bot avatar greenkeeper[bot] avatar paulirish avatar

Watchers

James Cloos avatar Francesco Soncina avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.