Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

>>> vs >> vs << vs | vs Math.floorfast

No description provided

lodash pull vs native splice

No description provided

closest vs querySelector

Goal: Get the target element inside the DOM Test case #1 - You don't have the target id - Find a target element through DOM via Element.closest() Test case #2 - You have the target id from your state - Find the target element via Document.querySelector()

contains vs closest (actually working benchmark)

No description provided

for-of campare2

No description provided

Optinal property vs undefined value

No description provided

set.has vs. array.includes asdfasdfasdf

No description provided

set.has vs. array.includes asdfasdf

No description provided

count lines by indexOf and split

Compare counting lines by searching the EOLNs or by splitting the source to an array.

lodash flatmap vs array.flatMap fixed

No description provided

Is "startsWidth" actually worth it?

No description provided

URLSearchParams vs Custom

No description provided

for vs foreach vs some vs for..of(100,000,000)

Compare loop performance

for vs foreach vs some vs for..of(10,000)

Compare loop performance

big object undefined vs. typeof vs. in vs. hasOwnProperty

Object lookup performance

Lodash sortBy vs orderBy2

Lodash sortBy vs orderBy

clone array performance test

No description provided

Math.random vs i++

No description provided

Math.random vs performance.now

No description provided

Math.random vs crypto.getRandomValues (2)

No description provided

Math.random vs Date.now

Which is best for generating a unique key?

Array.find VS for loop

No description provided

Compare performance of search in list and object v2

No description provided

insertAdjacentHTML vs append cloneNode

No description provided

Compare performance of for..of and forEach with filter, v3

No description provided