Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Lodash cloneDeep vs structuredClone vs recursiveDeepCopy vs JSON clone Forked

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

getElementById - querySelector

Yo

Array.includes() vs Set.has() for small array

No description provided

variable vs property (var vs this.property) - v2

No description provided

variable vs property (var vs this.property

No description provided

filter tags

No description provided

JavaScript Large Array Copy

Testing the results for the fastest approach of shallow copying an array in JavaScript.

_.isEqual vs === for string comparison

No description provided

array.includes vs if && vs ternary if &&

No description provided

array.includes vs if &&

No description provided

html encode 3

No description provided

html encode 2

No description provided

html encode

No description provided

RegEx.test vs. String.includes vs. String.match db2

No description provided

RegEx.test vs. String.includes vs. String.match db

No description provided

Array.splice vs Array.filter V223

Test a speed difference between these 2 approaches

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.