Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array indexOf and splice vs Set delete - good

No description provided

!!array.length vs array.length > 0

No description provided

ref?.current? vs ref.current? when current = null

No description provided

ref?.current? vs ref.current?

No description provided

pako vs. fflate

emulate file compression/decompression

js search benchmark

No description provided

Is Some faster than !!find

No description provided

replace vs replaceAll 2

No description provided

Compare the ways to convert String to Number in JS

Compare the most popular ways to convert string to number

Lodash cloneDeep vs generate new Object

No description provided

parentElement vs parentNode

No description provided

Regex vs string compare

No description provided

Fastest way to check if object is empty - EP3

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

array includes vs object key (small)

Performance comparison of ways to find if an array contains a value

Object cloning with Lodash cloneDeep vs merge vs structuredClone

No description provided

instanceof vs constructor.name vs field

No description provided

structuredClone vs JSON.parse + JSON.stringify + fast-safe-stringify

No description provided

example01

No description provided

find vs lookup

No description provided

sfdsfdsfdsfdsf

dsfdsfdsfdsf

objects delete vs null vs undefined vs void 0 vs Object.create(null)

delete vs null vs undefined vs void 0 vs Object.create(null)

Direct querySelector scope vs no scope

No description provided

querySelector scope vs no scope

No description provided

JS Big Integers v3

No description provided

Empty an array in JavaScript

Given an array of 100,000 random numbers, is it faster to empty the array by instantiating a new array, setting its length to zero, splicing it at index zero, or popping all values?

NEW BENCHMARK Your Benchmarks