Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Set vs Object vs Map vs Array (Iteration)

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

Array reduce using: push VS splice VS spread at beginning VS spread at end

No description provided

Found direct children by tag

No description provided

DataAttribute vs Class Selector vs ID Selector (2)

No description provided

DataAttribute vs Class Selector vs ID Selector (1)

No description provided

Array push vs spread operators

No description provided

reduce vs filter+map on one million

Tests performance between a single reduce and a filter then map

RegEx.test vs. String.includes vs. String.match big string

No description provided

tiny Array.find vs. Map.get

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

Test regexp vs startsWith II

No description provided

for-in vs for-of vs object.keys vs object.values to calculate length

No description provided

for-in vs object.keys vs object.values to calculate length

No description provided

Array.slice vs TypedArray.slice

Array.slice vs TypedArray.slice

TypedArray slice vs subarray

TypedArray slice vs subarray

js vs luxon iso, milli, date

No description provided

luxon vs Date vs luxon with js parsing

No description provided

function(a,b,c) vs function({a,b,c})

Check how much slower the processing becomes

Lodash cloneDeep vs structuredClone deep array vs deepClone

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

Optimizing Code: Object vs Array II

No description provided

Optimizing Code: Object vs Array

No description provided

typeof vs ===null

No description provided

Optimizing Code: Sets vs Array

No description provided

obj di vs array find

No description provided

createElement vs cloneNode() vs cloneNode(false) vs cloneNode(true)

Faster way to create new dom elements before insertion

fetch vs ajax call V3

fetch vs ajax call