Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array.filter VS Array.toSpliced for element deletion

Benchmark the performance of creating a new array with an element removed by using either Array.toSpliced or Array.filter

Lodash sumBy vs reduce - II

No description provided

Array.from vs array destructure 2

No description provided

find vs findIndex vs loop for 2

Measuring which is faster

find vs findIndex vs loop for

Measuring which is faster

Set.difference vs Filter + includes

No description provided

asdfasdfqer

No description provided

perf innerHTML vs innerText vs textContent

blah blah

slice vs substring (start-end)

Compares slice, substr and substring to each other

trim().endsWith() vs regex

No description provided

Array.from vs Spread 100,000

No description provided

Lazy array chains: no benefit for simple non-stupid ops

No description provided

automatic casting int to boolean casting vs int comparison

No description provided

for...in vs for...of

No description provided

json stringify parse vs spread

No description provided

map vs flatMap (fixed)

No description provided

array.index and Array.splice vs Array.filter

Test a speed difference between these 2 approaches

Ternary with null choice vs &&

No description provided

[ARRAY] concat vs spread operator vs push + spread vs prototype.push.apply

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

id vs attribute

No description provided

Array concat vs spread operator vs push (Single item)

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

Quick Sort 2 vs Merge Sort fixed

No description provided

Quick Sort 2 vs Merge Sort

No description provided

Quick sort vs Merge sort

No description provided

Speed of finding max value

Uses 4 different approaches: loop, Math.max.apply, reduce, and sort