Benchmark name When Created
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.

one month ago
Dynamic Set vs Object vs Map one month ago
Set vs Array Privilege Check one month ago
regex.test vs. array.includes one month ago
instanceof vs typeof vs !!value one month ago
instanceof vs typeof vs !! one month ago
Map.has vs Object hasOwnProperty vs direct check v2

Lookup of map vs object

one month ago
Map.has vs Object hasOwnProperty vs direct check

Lookup of map vs object

one month ago
Map.has vs Object hasOwnProperty

Lookup of map vs object

one month ago
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

one month ago
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?

one month ago
DOMParser vs createElement

which is faster for converting raw html into textContent

one month ago
Intl.Collator.compare() vs localeCompare() #2 one month ago
Intl.Collator.compare() lowercase vs sensitivity vs localeCompare one month ago
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

one month ago
Intl.Collator.compare() lowercase vs sensitivity #4 one month ago
Intl.Collator.compare() lowercase vs sensitivity #3 one month ago
Typed array vs normal array one month ago
Reducer Test #001 01.10.2024 one month ago
Object.entries vs ...... one month ago
Object.entries vs ... one month ago
Object.entries one month ago
Spread operator vs. Array.map change elemet one month ago
Stringify vs join on flat string arrays one month ago
lodash merge vs custom merge js one month ago

 Create Your benchmarks


;