Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

loop vs some 3214 1234 12342

No description provided

loop vs some 3214 1234 1234

No description provided

escapeIdentifier

No description provided

Lodash Filter test

No description provided

loop speed

i < len versus none item

Dot property set notation VS Lodash.set(nested)

Compares different approaches to set an object property

URL.toString() vs String(URL)

Testing different ways to convert JavaScript's URL object to its string representation.

compare the ways to generate an array filled with empty objects for iteration 2

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

compare the ways to generate an array filled with empty objects for iteration

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

starts/endswith vs regex.test

No description provided

r includes vs regex

No description provided

replaceAll vs non-regex replace

No description provided

Errors grbtgrh

No description provided

Array.reduce vs for of loop with set

A test summing 1000 random numbers, 1 - 10000

indexOf !== -1 vs > -1

No description provided

Object.fromEntries vs for of Object.keys

No description provided

React useCallback hook vs. custom hook (React 18)

No description provided

Map vs Object (Lookup then delete keys fix) Performance

Lookup of map vs object then delete keys w/o checking

Map vs Object (Lookup then delete keys) Performance

Lookup of map vs object then delete keys

set.has vs. array.includes vs plain object (100 000)

No description provided

set.has vs. array.includes vs plain object

No description provided

set.has vs. array.includes (length : 3)

No description provided

Conso duplicates solution 2

No description provided

Conso duplicates solution

No description provided

Lodash vs. Ramda vs. VanillaJS

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits. Comparing performance of: Lodash funcional style (idiomatic) vs Lodash funcional style (performance optimized with spread) vs Ramda without relying on currying or composition vs Ramda with currying and composition vs Ramda with transducers vs VanillaJS funcional style (idiomatic) vs VanillaJS funcional style (performance optimized with spread) vs VanillaJS procedural.

NEW BENCHMARK Your Benchmarks