Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Map vs Object - Insertion, Lookup, Update & Deletion

Insertion, Lookup, Update & Deletion of Map vs Object. Keys length: 20. Loop length: 100000.

Map vs Object - Insertion, Lookup & Update

Insertion, Lookup & Update of Map vs Object. Keys length: 20. Loop length: 100000.

lodash.isEqual vs local recursive function

No description provided

.map vs for loop

No description provided

JSON.stringify and parse vs Object.assign vs Destructure

No description provided

test vs includes

Comparing regexes with string inclusion

Sort vs ToSorted 222

test

Custom Event vs Callback speed test 2

No description provided

Custom Event vs Callback speed test

No description provided

new RegExp vs literal

No description provided

Starts with vs first character check

No description provided

Multiply vs divide

No description provided

ClassList has add or direct add

No description provided

JS > exec all vs matchAll vs match

No description provided

lodash merge vs deepmerge vs deepmerge-ts vs @fastify/deepmerge vs just-extend vs @stdlib/utils/merge (take 4)

No description provided

Replace RegExp vs split

No description provided

Array.from vs Spread [...] from already existing array (to avoid deepCopy)

Speed test of Array.from against Spread ([...array]) syntax. Not using Set because the test case wanted here is to have 2 arrays with the same elements (in e.g. to avoid mutating the original array).

undefined vs. typeof vs. in vs. hasOwnProperty vs. obj[key]

Object lookup performance

Array.prototype.slice vs spread operator v3

Compare the new ES6 spread operator with the traditional slice() method

Array for vs Array for of vs Set for of vs Map for of

Testing the difference between native loops and find()

Array.at(i) vs Array[i]

No description provided

Binary Search vs Array.prototype.indexOf

I'm just wondering if it is optimized under the hood.

Create Large List

For benchmarking other programs

Document fragment creation cost

No description provided

for key in object iteration vs for of array iteration

No description provided