Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Compare strings, localeCompare vs Intl.Collator API vs strict equality

This test measures which is faster, compare a string using localeCompare method, the Intl.Collator API or a strict equality

Array.filter vs lodash.compact

No description provided

compare the ways to generate an empty array for iteration 2

- Array.apply: Array.apply(null, Array(100)) - Destructuring operator: [...Array(100)] - Array.prototype.fill Array(100).fill(undefined) - Array.from Array.from({ length: 100 })

Substr vs Substring vs Slice v2

No description provided

indexOf versus object 4

No description provided

Array.find vs. Map.get (string) fixes

Test the performance of Array.find vs. Map.get, with various array sizes, and with/without conversion from array to map

class vs function mk I

No description provided

Lodash SortBy Vs Stable Sort

No description provided

Clone deep benchmarks for PR sections

No description provided

Map vs filter for unique properties in object

No description provided

Destructuring vs Direct Access Performance in JavaScript

This benchmark tests the performance difference between destructuring and direct access of object properties in JavaScript. The goal is to evaluate which method is faster for accessing multiple properties of an object.

Performance of js Include function over array and string

No description provided

Inline anonymous classes

https://es.discourse.group/t/error-detail/1857/49

Wrapped class field access speed v1

No description provided

Class field access speed v1

No description provided

Escape HTML regex vs replace vs textNode vs Option 5

No description provided

Escape HTML regex vs replace vs textNode vs Option 4

No description provided

Escape HTML regex vs replace vs textNode vs Option 3

No description provided

JSON Querying Comparisons + JmesPath

No description provided

find vs findIndex vs some (fork)

Measuring which is faster

for vs foreach vs for..in vs for..of with content and isEven

Compare loop performance

for vs foreach vs for..in vs for..of with content

Compare loop performance

JSON.stringify vs structuredClone vs _.cloneDeep

JSON.stringify vs structuredClone vs _.cloneDeep

assign vs spread test inside loop v2

No description provided

assign vs spread test inside loop

No description provided

NEW BENCHMARK Your Benchmarks