Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Comparing deep cloning methods (small object): Lodash <> Custom clone func <> JSON.parse <> structuredClone

Missing clone-deep

str split vs spread long string

No description provided

Immer(produce) vs lodash(cloneDeep)

No description provided

JavaScript Map vs. Object instantiation

No description provided

Array.prototype.concat vs spread operator (fix)

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

JS join vs map

Compare JS join and map methods.

Lodash cloneDeep vs structuredClone vs recursiveDeepCopy vs JSON clone 10kb json

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

set.has vs. array.includes string values

No description provided

clientWidth / clientHeight vs. getBoundingClientRect()awe

No description provided

xml vs json

No description provided

hypotvssqrtpowervssqrtxi

argiuaegioaergjioaerjgioaejgioaerjg

hypotvssqrtpower

argiuaegioaergjioaerjgioaejgioaerjg

Regex vs. String functions v2

No description provided

Filter + ForEach vs ForEach with If

No description provided

concat vs flatMap

No description provided

Reduce Object.assign vs spread

No description provided

padStart vs slice

Measures speed between using padStart and slice

Push vs LHS spread

Is it fast to build up an array using the spread operator on the left-hand side?

Test array reduce

Quick benchmark

JSON parse vs structuredClone

Test json

eval vs new Function (Sample JS Functions)2

No description provided

Setting the same value with setAttribute()

Is checking the current value of an attribute with getAttribute() better than setting the same value with setAttribute() over and over.

JSON stringify long array with ids

No description provided

reduce.concat() vs flat() vs concat(...)

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

Delete vs destructure for objects v2 2

Measure the performance of delete versus removing a prop from an object

NEW BENCHMARK Your Benchmarks