Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Lodash isEqual vs JSON stringify (longer version)

Comparing performance of: Lodash isEqual vs JSON stringify

Which comparison operator (> vs ===) is faster? (fork with the correct code)

Is there a performance benefit to replacing > with ===?

Array filter vs. for loop - with for in -cc

No description provided

Looping with Index: forEach vs array.entries vs for of

No description provided

Array of strings | Some vs Includes (+ spread)

No description provided

Array of strings | Some vs Includes

No description provided

(new)? DataView or BitTwiddling for Reads

Is DataView faster than directly bit twiddling?

TLE: Slice vs Substring

No description provided

for vs foreach vs for..in vs for..of vs reverse while (let instead of var, and optimized for)

Compare loop performance

for vs foreach vs for..in vs for..of (let instead of var, and optimized for)

Compare loop performance

innerhtml vs removechild vs remove vs innerText vs textContent vs replaceChildren vs removechild (reverse) vs remove (reverse)

No description provided

array.sort vs array.toSorted VS [...array].sort

No description provided

Performance when getting innerHTML vs innerText vs textContent

No description provided

lumiere fp vs raw

No description provided

escaping html 3232

No description provided

escaping html 32

No description provided

Int vs string split

No description provided

findCommon elements in th JS v2

Mine vs. Gemini vs. ChatGPT vs Perplexity vs. Khoj vs. Phind

findCommon elements in th JS

No description provided

Reading from objects - Frozen vs Unfrozen

This compares the speed of accessing properties from a frozen object versus an unfrozen object. The example uses a simulated struct but one reason someone may use a frozen object is to use it like an enum and lock the amount of valid values.

Function spread vs array

No description provided

set vs array iteration vs array for loop

No description provided

Complex assign vs destructure

No description provided

cloneNode vs createElement wafesgrdthf

No description provided

es-toolkit cloneDeep vs structuredClone

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