Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

JS Map<number, object> vs Array<{ number, object }> Small

No description provided

JS Map<number, object> vs Array<{ number, object }>

No description provided

Some vs. Filter vs. indexOf vs. Includes vs. Find vs. findIndex performance

No description provided

get navigation type

No description provided

Looping with Index: forEach vs array.entries vs for

No description provided

Array forEach callback function as a parameter vs as a predefined variable + compared to using callback parameters vs without + for..of, for..in, for loop

No description provided

.map().includes() vs .some()

No description provided

Performance of JavaScript .reduce vs. for vs. for..of

No description provided

Array.every vs JSON.stringify vs foreach

No description provided

String wrapping

No description provided

Array splice vs array assign

No description provided

Object.fromEntries vs reduce vs classic for v3

No description provided

forEach vs for len vs for in vs for of fix

created based off of an archived jsperf benchmark: http://web.archive.org/web/20191008221700/https://jsperf.com/foreach-vs-for-loop-vs-for-in-vs-for-of-vs-babel-for-of change var to let. for of returns the value directly. So you don't get value from testData array.

Object.fromEntries vs reduce vs classic for2

No description provided

Object.fromEntries vs reduce vs classic for

No description provided

array.sort vs array.toSorted

No description provided

Class method / instance method / bind this – more closer to reality test

No description provided

test stringify

No description provided

Converting array to object using Array.reduce(), Object.fromEntries(), Object.assign(), for loop, ...spread

No description provided

switch function vs switch inline vs object vs Map

No description provided

array includes vs key in object

performance comparison of ways to find if an array contains a value

Mapping a pair of numbers (2 numbers) to another number [Algorithm 1]

Comparing the performance of different implementations of 2-Tuple cache (mapping a pair of numbers to another number) when being used to achieve memoization a recursive algorithm.

Compare comparison with/without null or undefined

No description provided

json vs arraybuffer

No description provided

Converting a small Set to an Array

Return a new Array containing all elements in a Set in insertion order.