Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

JSON.parse vs string.splitd

No description provided

Array loop vs foreach vs map big

No description provided

Math.pow vs ** vs * (power of 2)

power of 2 (square) test

Array push spread vs Array.prototype.push.apply vs For loop

Compare using array spread and using apply or for loop

IIFE vs regular code v2

Check if IIFE have a negative runtime impact or if they are optimized away

IIFE vs regular code

Check if IIFE have a negative runtime impact or if they are optimized away

WeakMap vs Symbol Property vs String Property

No description provided

array fn vs function 2

No description provided

array fn vs function

No description provided

for w/length constant vs foreach vs some vs for..of (3)

Compare loop performance

for w/length constant vs foreach vs some vs for..of (2)

Compare loop performance

Array fill vs fill/from vs apply vs join

Fill an array with repeated elements

array push vs array set

No description provided

For loop vs Index Of (1000000 case)

save length of the array in the variable vs get it the loop

Reverse Performance

No description provided

array length perf

No description provided

typeof number vs. Number.isNan vs. isNan vs self comparison. Versus let

No description provided

lodash uniq vs spread new Set() medium size

This checks for medium sized duplicated input to contain unique entries

traverse vs NodeIterator vs TreeWalker vs document.querySelectorAll(*) (fix: querySelectorAll)

Let's compare the speed of 4 different ways to traverse the DOM.

toString() vs `${templateString}`

No description provided

ISO Datetime - add microseconds - replace vs slice

ISO Datetime - add microseconds - replace vs slice

DOM vs Virtual DOM

No description provided

querySelectorAll hover data attribute vs class name

No description provided

if else return vs return

No description provided

if else vs return

No description provided