Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

New Object from Reduce vs. ForEach

Tests the difference in creating new objects by using reduce vs building up an object in a forEach function

Array concat vs spread operator vs push - e

Compare the new ES6 spread operator with the traditional concat() method and push

concat vs spread operator vs apply vs constructor

Compare the new ES6 spread operator with the traditional concat() method and apply

Array.prototype.concat vs spread operator vs apply vs constructor

Compare the new ES6 spread operator with the traditional concat() method and apply

vanila vs jq 3.5.1

No description provided

Lodash cloneDeep object var vs JSON Clone string var

No description provided

substring vs slice v0.1

No description provided

substring vs slice

No description provided

split vs slice

Javascript split vs slice performance

Delete vs destructure for objects without mutating

Measure the performance of delete versus removing a prop from an object without mutating

Object.keys(obj)[0] vs for in

Test the performance to retrieve the first key of an object

for-in vs for key of Object.keys

No description provided

String.match vs. RegEx.test

No description provided

nuTotalHeight()

No description provided

array object bench v0.1

testing various way of doing it

Switch vs. If

No description provided

New Variable of Result of Mutating Method vs. Same Variable

Tests how inefficient it is to save the result of a mutating method (that already changes the value passed to it) in a new variable.

Property vs. Variable Access

No description provided

Double tilde vs Math.floor

No description provided

Arrray.reduce + spread vs Array.flat

No description provided

lodash uniq vs set with sort with unsorted array

No description provided

lodash uniq vs set with sort

No description provided

regex .replace() vs literal .replaceAll()

Test simple string replacement when we don't need regex features such as capture groups.

Lodash cloneDeep vs JSON Clone vs Deepcopy

No description provided

Fast Sqrt 2234234

Compare Quakes fast inverse squareroot