Git Product home page Git Product logo

benchmark-concat-vs-push's Introduction

benchmark-concat-vs-push

node v6.9.1

ITEM_COUNT = 1000; SUB_ITEM_COUNT = 100;

concat x 2.55 ops/sec ±2.06% (11 runs sampled)
push.apply x 11.39 ops/sec ±2.08% (31 runs sampled)
push spread x 9.58 ops/sec ±1.83% (27 runs sampled)
Fastest is push.apply

ITEM_COUNT = 100; SUB_ITEM_COUNT = 1000;

concat x 8.62 ops/sec ±3.16% (26 runs sampled)
push.apply x 11.76 ops/sec ±2.96% (32 runs sampled)
push spread x 9.60 ops/sec ±6.22% (28 runs sampled)
Fastest is push.apply

node v8.0.0

ITEM_COUNT = 1000; SUB_ITEM_COUNT = 100;

concat x 2.68 ops/sec ±4.58% (11 runs sampled)
push.apply x 44.89 ops/sec ±1.61% (55 runs sampled)
push spread x 45.30 ops/sec ±1.47% (56 runs sampled)
Fastest is push spread,push.apply

ITEM_COUNT = 100; SUB_ITEM_COUNT = 1000;

concat x 18.00 ops/sec ±2.73% (34 runs sampled)
push.apply x 45.12 ops/sec ±1.77% (56 runs sampled)
push spread x 45.53 ops/sec ±1.70% (56 runs sampled)
Fastest is push spread,push.apply

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.