Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

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

ID vs set data attribute

No description provided

map VS OBJ

No description provided

get first string segment2: split vs slice

Javascript split vs slice performance

get first string segment: split vs slice

Javascript split vs slice performance

For vs Map test 27/01/25

No description provided

hyperlit vs hyperhype vs hyperapp vs react

No description provided

function vs class with external declarations

No description provided

Sting prototype indexOf vs includes performance

No description provided