Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

inbuilt structuredClone vs deepClone

No description provided

inbuilt structuredClone vs spread object

No description provided

Object.values VS Object.entries VS Object.keys VS Object.keys VS Object.values with forEach

No description provided

Array fill vs for i loop

People tend to use array fil and then foreach, we know foreach is faster than a for loop, but is it also faster if you use array fill first?

Spread vs Array.from on querySelectorAll

Create array from Node.childNodes

Spread vs Array.from on NodeList

Create array from Node.childNodes

Lodash clone VS spread operator v4.17.21

No description provided

Lodash cloneDeep VS spread operator v4.17.21

No description provided

Math.max with apply vs spread vs reduce 10k elements

Compare the new ES6 spread operator with the Math.max.apply method

Test String Compare

No description provided

assign vs void

No description provided

Lodash cloneDeep vs structuredClone vs JSON Parse (Big Object)

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

set value if non existent

No description provided

flatMap() vs filter().map() vs reduce() vs forEach()

Test four different approaches for a combination of filtering and mapping elements of an array.

new Set() vs Array.prototype.filter

No description provided

Test find x 2 vs forEach + some

No description provided

Test find x 2 vs flatMap + find

No description provided

Shallow Copy Array - Slice vs Spread vs Filter

No description provided

sorting an array and then reverse vs sorting with reversive comparison

No description provided

Set vs some for arrays of objects

No description provided

toFixed vs Math.round() sd6f54sd6f54

Comparing performance of: toFixed(4) vs toPrecision(4).toString() vs (Math.round(*10000)/10000).toString() vs Math.floor fast vs the new Math.trunc

toFixed vs Math.round() sd6f54sd6f54s6df54ds6f

Comparing performance of: toFixed(4) vs toPrecision(4).toString() vs (Math.round(*10000)/10000).toString() vs Math.floor fast vs the new Math.trunc

Array length to string

No description provided

map vs object 2 2 2 2

No description provided

parsefloattofixed vs round

Compare round lodash function vs javascript native toFixed() function