Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Set vs Object vs Map, Access gweqgewqgewqgewq

Compare the speed to retrieve a value from three data structures that can be used for boolean referencing; i.e. for mapping enabled settings.

Test string concat

No description provided

Builder pattern extend

No description provided

Builder pattern b

No description provided

Builder pattern

No description provided

Multiply using Decimal.js vs Multiply using native numbers with Math.pow to 10 decimals

No description provided

Object.assign vs spread operator vs structured clone vs for loop copy vs JSON duplicate with fallbacks

This test is only intended to be used to test for getting a new reference to an object, not generating a deep clone of an object. Some of the methods used here generate a deep copy and some a shallow copy, but the intent is only to find the fastest method of getting a shallow copy where the key length is long and there are lots of keys.

lodash hasIn vs get

No description provided

Comparing response.json() and JSON.parse(response.text())

No description provided

direct vs indirect var return

No description provided

Roman_Var_In_Loop

to var or not to var in loop

slice vs substr vs substring (with no end index) 3

Compares slice, substr and substring to each other when there is only a start index

slice vs substr vs substring (with no end index) 2

Compares slice, substr and substring to each other when there is only a start index

JQuery: selector vs filter vs filter+filter

find the best solution for optimize getting selected option

[...array].sort vs array.toSorted

No description provided

JS Date libraries 3

No description provided

getElementById vs QuerySelector nested element2

No description provided

Array foreach vs for..in

No description provided

Search strategy generation loss

No description provided

Array Pop vs setting array length -1

Comparing array pop vs setting array length

javascript loops2

No description provided

splice or filter

No description provided

Mutate array vs memory efficient map

In memory constrained devices the use of .map() is not always possible. In such places, this should determine whether a mutation is better than creating a new array from scratch while emptying the original array, thus, keeping somewhat the same memory usage.

Include vs Binary search in sorted array vs Map.has() vs Object[]

No description provided

underscore _.uniq vs [...new Set()]

No description provided