Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Large number product of x consecutive digits

No description provided

Array.prototype.slice vs spread operator-fixed

Compare the new ES6 spread operator with the traditional slice() method

Slice - Splice (1)

No description provided

.unshift() vs .push() + .reverse()

No description provided

table rewrite vs insert row

No description provided

String to int vs int to string 2

No description provided

Array shallow copy - slice(0) vs conditional for() loop

Is it faster to copy a whole array with slice() or only copy members with a flag that indicates copying is required?

String to int vs int to string

No description provided

Switch vs Object Literal - testing with simpler data

No description provided

Switch vs Object Literal - testing with stable input

No description provided

Array deconstruction vs array push

Shows the decremental performance when unnecessarily recreating an array when pushing new items to it.

Foreach vs for-in vs for-of vs for

No description provided

for vs foreach vs for..of vs for..of over entries (const)

Compare loop performance

Number constructor vs double tilde

Number() vs ~~

Double for vs Object.values.flat

No description provided

Array filter versus for loop

No description provided

array[array.length - 1] vs array.at(-1)

No description provided

one loop with 10 operations or 10 loops with 1 operation

No description provided

Math max or ternary operator

No description provided

Half loop and double iteration ops

No description provided

Unique lodash vs vanilla

No description provided

findIndex vs indexOf - JavaScript performancedsadsadas

No description provided

find index range in array2

No description provided

find index range in array1

No description provided

Array of objects property extraction

No description provided