Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Symbol vs String property square bracket vs dot notation

No description provided

.filter().map() vs flatMap() vs reduce()

Compare performance of `.filter().map()`, `flatMap()`, and `reduce()` in JavaScript

Set vs Object vs Map vs array

Compare the speed to retrieve a value from three data structures that can be used for boolean referencing; i.e. for mapping enabled settings.

.startsWith() vs .test() vs .match() vs .indexOf() vs equality v2

No description provided

Delete vs destructure for objects with and without mutating copy

Measure the performance of delete versus removing a prop from an object without mutating

JS: append vs appendChild multiple elements fwaeafwaw

No description provided

findIndex vs indexOf - JavaScript performance [clone]

No description provided

Realistic: querySelector vs querySelectorAll vs getElementsByClassName vs querySelector (ID) vs getElementsByID

No description provided

Complex mapping

No description provided

Markdown Parser Performance Comparison [as of May 2025]

A performance comparison of Javascript Markdown parsers.

segu: filter-map vs reduce

modified version of `map-filter vs reduce` that switches the order of operations

bench the mark

No description provided

numeric vs string property accessor

compare setting and getting values of property accessed via numeric key and string key

querySelectorAll, iterated map or array map

No description provided

new Date().getTime() vs new Date().toISOString()

No description provided

Array.splice + Array.indexOf vs Array.filter

Test a speed difference between these 2 approaches

Array.splice + indexOf vs Array.filter

Test a speed difference between these 2 approaches

Instanceof vs string comparison vs property checking vs constructor comparison

Measure the performance of instanceOf operator vs comparing a basic string type.

deepmerge vs structuredClone

deepmerge vs structuredClone

lodash forEach vs native forEach vs for of

No description provided

Try/catch performance (JSON parse)2

No description provided

_.compact vs filter

No description provided

_.forEach vs for of

No description provided

benchmark for benchmarks

always the same test case, but different results?

Wildcard versus character class

No description provided