Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

lodash groupBy vs Array.reduce 100k fair3 smol

lodash groupBy vs Array.reduce 100k fair3 smol

for-in-hasOwnProperty vs object.keys

No description provided

Assignment of value vs Destructuring an object in loop

No description provided

Assignment of value vs Destructuring an object v2

Most real example of Assignment of value vs Destructuring an object

Lodash sort vs array.prototype.sort (strings) small

No description provided

Testing app

Testing this testing app

object vs set.has vs. array.includes on strings test 4

No description provided

Lodash cloneDeep vs Lodash clone vs Array.splice() vs. Object.assign()

For times when a shallow copy is needed, what is the performance difference between these 3 methods.

standard replaceAll vs regex replace

No description provided

_.pick vs reduce

No description provided

Comparing destructuring assignment with optional chaining v3

No description provided

Comparing destructuring assignment with optional chaining v2

No description provided

Comparing destructuring assignment with optional chaining

No description provided

String vs regex

No description provided

sort vs find and index - 10

What is faster, sorting at each update ot inserting

if else vs switch case vs JSON

Compares if/else, switch/case and a JSON mapping to functions.

String isNullOrWhitespace

Test is fastest way to detect isNullOrWhitespace

Which equals operator (== with type coercion vs ===) is faster?

Is there a performance benefit to replacing == with ===?

Function typeof in High Frequency

Caching function typeof

Skip Substr if length is less

Skipping the Substr method if possible

String typeof in High Frequency

Comparing typeof vs method availability

Filter by prop smol

Filter by prop smol

Filter by prop

Filter by prop

JS If vs Object Literal

No description provided

replace vs regex replace test

No description provided