Benchmark name When Created
simple js test 5 months ago
JS Map<number, object> vs Array<{ number, object }> Small 5 months ago
JS Map<number, object> vs Array<{ number, object }> 5 months ago
Some vs. Filter vs. indexOf vs. Includes vs. Find vs. findIndex performance 5 months ago
get navigation type 5 months ago
Looping with Index: forEach vs array.entries vs for 5 months ago
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 5 months ago
.map().includes() vs .some() 5 months ago
Performance of JavaScript .reduce vs. for vs. for..of 5 months ago
Array.every vs JSON.stringify vs foreach 5 months ago
String wrapping 5 months ago
Array splice vs array assign 5 months ago
Object.fromEntries vs reduce vs classic for v3 5 months ago
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.

5 months ago
Object.fromEntries vs reduce vs classic for2 5 months ago
Object.fromEntries vs reduce vs classic for 5 months ago
array.sort vs array.toSorted 5 months ago
Class method / instance method / bind this – more closer to reality test 5 months ago
test stringify 5 months ago
Converting array to object using Array.reduce(), Object.fromEntries(), Object.assign(), for loop, ...spread 5 months ago
switch function vs switch inline vs object vs Map 5 months ago
array includes vs key in object

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

5 months ago
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.

5 months ago
Compare comparison with/without null or undefined 5 months ago
json vs arraybuffer 5 months ago

 Create Your benchmarks