Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

innerHTML vs innerText vs textContent 2

blah blah

class vs object create

No description provided

javascript class vs function closure

No description provided

for (cache length) vs foreach vs for..in vs for..of

Compare loop performance

square reverse vs sqrt

Square vs square root

Crypto.randomUUID() vs new Date().getTime()

In real world example new Date() will be unique date. In this case its same days

Array concat vs spread operator vs push vs array length + assign

No description provided

eval vs new Function strict

No description provided

UUID lib vs Crypto.RamdonUID

No description provided

JS: append vs prepend vs insertBefore vs appendChild vs insertAdjacentElement in a populated table

The similar tests I found here "test" adding one single node to another singe node. Those tests are quite useless for real world situations. The use case here is that the rows array is sorted (not included) and then the table is restructured accordingly.

JavaScript spread operator vs Object.fromentries performance

No description provided

JSON parse nested vs flat

No description provided

Comparing lodash's times with Array.from

No description provided

clientWidth vs offsetWidth vs window.getComputedStyle v2

No description provided

Deduplicate 4

Improve perf of sort

Native uniqueBy vs Lodash _.uniqBy

No description provided

URLSearchParams.has vs URLSearchParams.get without undefined returning

No description provided

URLSearchParams.has vs URLSearchParams.get with undefined returning

No description provided

children vs querySelectorAll scope

No description provided

typeof eqeq vs typeof eqeqeq

No description provided

isNaN vs Number.isNaN

No description provided

window.getComputedStyle vs. inline style

No description provided

Custom Event vs PubSub Single Event

No description provided

hasAttribute vs dataset

Compare setAttribute to dataset

Custom Event vs PubSub

No description provided

NEW BENCHMARK Your Benchmarks