Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Clone objects

No description provided

Lodash big cloneDeep vs structuredClone

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

Array concat vs spread operator vs push large with smaller array added

Compare the new ES6 spread operator with the traditional concat() method and push

Array concat vs spread operator vs push large array

Compare the new ES6 spread operator with the traditional concat() method and push

clsx or classList

No description provided

getBoundingClientRect width vs offset width

No description provided

Object arrays: findIndex vs for loop start from some index

Testing finding an object array via findIndex or by using a for loop starting from some index

Matrix Transpose

No description provided

NaN/Infinity shortcut vs variable

No description provided

Switch vs if vs lookup object

No description provided

Typed Array Clone

No description provided

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

No description provided

array.at vs polyfill vs array.length

No description provided

normal object vs mutated object

No description provided

object destructuring

No description provided

Time Cost for different calling

No description provided

Pushing

No description provided

setAttribute vs style.cssText test

No description provided

Array splice vs. Set delete #2

No description provided

Array splice vs. Set delete

No description provided

Test vs Array

No description provided

for-in vs object.keys vs object.values for objects without extra log

No description provided

filter(_ => !!_) vs filter(Boolean) vs filter(v => v != null)

No description provided

javascript includes vs indexOf

javascript includes vs indexOf

JSON Stringify Speed Test f

This benchmark tests whether the speed or JSON.stringify changes with object size