Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Lodash cloneDeep vs structuredClone vs JSON.parse + JSON.stringify but with big data & deepClone

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

isArray?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#instanceof_vs._array.isarray

class vs object create 2

No description provided

createElement vs cloneNode 3 with inner content

Faster way to create new dom elements before insertion

deepFreeze (Object.freeze)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze#deep_freezing

Reduce test

No description provided

qs vs query-string vs querystringify vs URLSearchParams

No description provided

!every vs some

No description provided

js merge objects

No description provided

toDateString() vs. getFullYear(), getMonth(), and getDate() equality check

Compare how equality checks using toDateString() compares to a custom function that relies on getFullYear(), getMonth(), and getDate()

structuredclone and other clone

No description provided

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