Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

For Loop VS Filter Map

No description provided

length - 1 vs pop vs shift

No description provided

BC just a quick test of jq vs native map

benchmark different versions of jquery

fractional math pow vs multiply

No description provided

Object.fromEntries vs Map

No description provided

Some vs Find2

No description provided

flatmap: lodash vs native

No description provided

native reverse find vs native array findLast vs for loop find

Compare the new ES6 spread operator with the traditional concat() method

Finding the Fastest Clamp

Generates a list of random numbers between -1.5 and +1.5 then loops through the list with each function. Functions that uses branches should have more variance in speed since they can potentially exit early. Functions that use arithmetic should have little to no variance but do more computation.

Dynamic Set vs Object vs Map

No description provided

Set vs Array Privilege Check

No description provided

regex.test vs. array.includes

No description provided

instanceof vs typeof vs !!value

No description provided

instanceof vs typeof vs !!

No description provided

Map.has vs Object hasOwnProperty vs direct check v2

Lookup of map vs object

Map.has vs Object hasOwnProperty vs direct check

Lookup of map vs object

Map.has vs Object hasOwnProperty

Lookup of map vs object

Array.find vs Map.get

Test the performance of Array.find vs. Map.get, with various array sizes, and with/without conversion from array to map

structuredClose(myObject) vs JSON.parse(JSON.stringify(myObject))

Both structuredClone(myObject) and JSON.parse(JSON.stringify(myObject)) can be used to create deep copies of JavaScript objects, but which is faster for a decent sized object?

DOMParser vs createElement

which is faster for converting raw html into textContent

Intl.Collator.compare() vs localeCompare() #2

No description provided

Intl.Collator.compare() lowercase vs sensitivity vs localeCompare

No description provided

JS if/if vs if/else if with negotiations

Modification of https://www.measurethat.net/Benchmarks/Show/1726/0/js-ifif-vs-ifelse-if with test case for heterogeneous checks

Intl.Collator.compare() lowercase vs sensitivity #4

No description provided

Intl.Collator.compare() lowercase vs sensitivity #3

No description provided