Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array.splice + Array.indexOf vs Array.filter

Test a speed difference between these 2 approaches

Array.splice + indexOf vs Array.filter

Test a speed difference between these 2 approaches

Instanceof vs string comparison vs property checking vs constructor comparison

Measure the performance of instanceOf operator vs comparing a basic string type.

deepmerge vs structuredClone

deepmerge vs structuredClone

lodash forEach vs native forEach vs for of

No description provided

Try/catch performance (JSON parse)2

No description provided

_.compact vs filter

No description provided

_.forEach vs for of

No description provided

benchmark for benchmarks

always the same test case, but different results?

Wildcard versus character class

No description provided

Array.from() vs new Array()2

Testing the difference between creating filled arrays.

date now performance

No description provided

classNames2

No description provided

Lodash cloneDeep vs structuredClone 22222

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

Lodash cloneDeep vs structuredClone 2222

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

classNames

No description provided

new Date from timestamp vs new Date from date-string

No description provided

Number.toString(16) & parseInt(String, 16) vs Number.toString(36) & parseInt(String, 36)

No description provided

slice vs substr vs substring (with no end index) vs not

Compares slice, substr and substring to each other when there is only a start index

map vs object wqe21123

No description provided

Lodash meanBy vs JS (with small and large size)

No description provided

Array and direct object access

No description provided

getElementById vs querySelector in large DOM

No description provided

Which equals operator (!== vs > ) is faster?

No description provided

multi-order consolidateCartItems

No description provided