Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

LinearSearch vs BinarySearch

No description provided

split string by newlines (fixed)

Fastest way to split a string by newlines

indexOf vs search 3

String searching

indexOf vs search 2

String searching

indexOf vs search

String searching

Decode colors as string (3)

Compares using split colors into an array at begin vs. extract the color by sub-string.

Decode colors as string (2)

Compares using split colors into an array at begin vs. extract the color by sub-string.

for vs foreach vs some vs for..of fixed

Compare loop performance

Fastest difference between multiple sets

No description provided

Uint8Array vs Uint8ClampedArray - more numbers

No description provided

object-hash md5 vs JSON.stringify

No description provided

newing objects vs calculation2

No description provided

fibonacci Recursive vs Memoization

No description provided

literals vs classes

No description provided

Error stack overhead

No description provided

clientHeight vs offsetHeight vs getBoundingClientRect height only

No description provided

array includes lodash vs vanilla JS

No description provided

FAST CEIL

No description provided

Math.ceil vs floor vs ~~

No description provided

Set for entries vs forEach

Benchmark the performance diff between sets forEach and for loop over set.entries

Array: delete vs null vs undefined vs 0

No description provided

variables declare outside or inside loop

No description provided

Lodash cloneDeep vs structuredClone vs JSON.parse/JSON.stringify

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

regex compare & replace v2

No description provided

bigArray uniq vs set vs reduce few duplicate

No description provided