Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

window.localStorage vs localStorage

No description provided

1312312

No description provided

Number.isInteger() vs typeof

Is it faster to detect if a variable is an integer or is it faster to use typeof to verify the type?

Pushing vs Filling

No description provided

Fetch vs axios

No description provided

Math.max/min vs if vs ternary operatorsd

No description provided

endsWith vs index

Checks endsWith vs index

Should you cache Intl.DateTimeFormat (simple key)?

Testing creating a new Intl.DateTimeFormat each time vs. caching it using simple string as the key.

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