Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

For loop vs Index Of

save length of the array in the variable vs get it the loop

querySelector by attribute (partial matching) VS getElementById VS getElementsByTagName

querySelector by attribute (partial matching) VS getElementById VS getElementsByTagName

Branching if-else-if, if-return, lodash cond v2

No description provided

_.set Lodash.js vs Native

No description provided

querySelectorAll vs. getElementsByClassName with forEach

No description provided

Lodash: difference vs intersection vs includes

No description provided

Array push vs spread vs concat

When adding an element to an array, measure the performance of push, spread syntax and concat. The case is when original array must contain the new element, thus modifying it in process.

func vs js object vs symbol

No description provided

Performance of Object.values(obj) vs_.values() vs for...in to extract values from an object

Compare performance between the native Object.values(obj) function vs the lodash _.values() option and a function that extracts the values of an object using a for...in loop.

lodash partition vs forEach with array push vs two filter loops

No description provided

Immer vs Spread Reducer With Filled State (replace with diff key and value)

No description provided

Immer vs Spread Reducer With Filled State

No description provided

Immer vs Spread Reduce9

No description provided

a*a vs a**2 vs Math.pow(a, 2) vs ajax.bigInt

No description provided

Underscore vs Lodash: isEqual

Compare Underscore vs Lodash isEqual. Which is faster?

JQuery version speed test jQuery 3.4.1 all w/wo migrate

JQuery version speed test

$(document).height() vs document.body.clientHeight

$(document).height() vs document.body.clientHeight

Lodash sort vs array.prototype.sort with slice

No description provided

lodash unionWith vs Set for merging without duplicates

No description provided

sortby vs orderby

No description provided

lodash vs for-of vs forEach3

No description provided

getComputedStyle vs. className vs. className / contains

No description provided

simpleStringify vs JSON.stringify3

No description provided

ES6 Map Merge vs forEach

No description provided

string-interpolation-vs-concatenation-vs-join

No description provided

NEW BENCHMARK Your Benchmarks