Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

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

window.localStorage vs localStorage

No description provided

1312312

No description provided

Number.isInteger() vs typeof

Is it faster to detect if a variable is an integer or is it faster to use typeof to verify the type?

Pushing vs Filling

No description provided

Fetch vs axios

No description provided

Math.max/min vs if vs ternary operatorsd

No description provided

endsWith vs index

Checks endsWith vs index

Should you cache Intl.DateTimeFormat (simple key)?

Testing creating a new Intl.DateTimeFormat each time vs. caching it using simple string as the key.