Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Testing filter vs foreach

No description provided

firstChild vs lastChild

No description provided

Pop vs length -1

No description provided

Object.keys VS JSON.stringify() for empty objects and arrays

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

Array.find vs Array.filter on large dataset

No description provided

JavaScript nested namespace vs simple namespace

No description provided

guard asdf

No description provided

Object.entries VS Object.keys VS Object.keys with extra array VS Object.entries without arraya s.d..

No description provided

Swap element "in-place" with replaceWith() vs .outerHTML

Swap an DOM element with replaceWith() and compare with the .outerHTML method of replacing its content instead. replaceWith() - Pretty one-liner - Breaks element attributes, inline style and scrollHeight/scrollWidth (fully re-render element) .outerHTML - Keeps attributes, inline style and scrollHeight/scrollWidth (partially re-render element) - Breaks previous element references, "hacky" looking and sometimes perceptible (element may flash for a split second)

loops testing

Compare loop performance

insertAdjacentHTML + querySelector vs append

No description provided

JavaScript spread operator vs Object.assign performance without mutating

No description provided

Lodash.isEqual vs JSON.stringify Equality Comparison for 1000 length array

No description provided

JSON.stringify + JSON.parse vs structuredClone vs fast_deep_clone (recursive)

No description provided

unique elements in array using filter fork2

No description provided

unique elements in array using filter fork

No description provided

Object.fromEntries vs reduce v4

No description provided

Math.pow vs ** vs * version for squaring

Updated to prevent VM optimizations to remove the functions

Math.pow vs ** vs * version 2

Updated to prevent VM optimizations to remove the functions

test02

ResizeObserver vs matchMedia

ResizeObserver vs matchMedia extended

ResizeObserver vs matchMedia

StrangeBee Markdown Performance Comparison

A performance comparison of leading Javascript Markdown implementations.

filter.map vs flatmap vs reduce vs flatmap precreated array and filter always true

No description provided

my filter.map vs flatmap vs reduce

No description provided

proper sort vs 2 arrays

No description provided