Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

=== vs includes

how much of a performance deficit you can expect from using Array.includes instead of strict equal

Object.fromEntries vs forEach vs For Loop

No description provided

checking empty array

isArray vs array.length

parentElement vs parentNode

No description provided

check empty array

isArray or array. lenght?

Regex vs string compare

No description provided

Fastest way to check if object is empty - EP3

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

array includes vs object key (small)

Performance comparison of ways to find if an array contains a value

includes vs === v1

No description provided

Ajaytest

FIguring out the performance differences between using the operations in the name on copying an array of objects considering the fact that other methods of copying (slice, concat, etc.) are shallow copies and end up being by reference instead of by value.

set.has vs. array.includes vs array.indexOf (small set of number values)

Numbers instead of strings

RegEx.test vs. String.includes vs. String.match vs String.startsWith

No description provided

adsgfgjghjghjdjfgjhfgjh

No description provided

array fill 10000

compare some iterated array from size

Array access + add diff types

No description provided

ducking test5

No description provided

Base64 encoding test: Native JS Func vs FileReader.readAsDataURL()

No description provided

Base64 encode native func vs readAsDataURL()

No description provided

Object cloning with Lodash cloneDeep vs merge vs structuredClone

No description provided

Object cloning with Lodash clone vs cloneDeep vs merge vs ES6 object spread vs ES6 Object.assign vs structuredClone

No description provided

6 properties - style.setProperty vs style.cssText vs style vs Object.assign vs setAttribute (w/ nullCheck) 2

No description provided

6 properties - style.setProperty vs style.cssText vs style vs Object.assign vs setAttribute (w/ nullCheck)

No description provided

reduce vs plain cycle

No description provided

filter map vs reduce vs for of vs for in vs for length

No description provided

matches (23kb) vs. matches (101kb)

No description provided