Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array concat vs spread operator vs push large

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

window.getComputedStyle vs. className vs. classList 2

No description provided

window.getComputedStyle vs. className vs. classList

No description provided

Benchmark Clamp 2221134b-d084-4650-87ae-9a71a46875a0

Benchmark multiple clamp implementations

Array of objects loop for vs foreach vs map vs for..of + slice vs for

No description provided

Testing String Replacement

No description provided

bench simple split vs replace regex

No description provided

querySelector vs querySelectorAll testsss

No description provided

getBoundingClientRect vs style

No description provided

JS Cloning benchmarking

Comparing performance of: Spread operator (...) vs JSON.parse(JSON.stringify()) vs Custom function vs Lodash.cloneDeep() vs jQuery.extend(true) vs structuredClone() By cloning a complex object with nested specific objects (ArrayBuffer, Set, Map, RegExp, etc.)

Test querySelector computed style

No description provided

Compare jQuery 3.7.0 vs 3.6.0 performance

Comparing performance of: jQuery 3.7.0 vs jQuery 3.6.0

Stringify vs toString vs Object Reduce and String vs Get all strings

Test performance to get strings from Object

Stringify vs toString vs Object Reduce

Test performance to get strings from Object

Get the only item in an array

How do array.toString(), array.shift(), and array.pop() compare to array[0] when retrieving the only item in an array

test date check

No description provided

chain of or equals vs Array.includes

What works best when value misses all the conditions.

chain of or equals vs includes 2

how much of a performance deficit you can expect from using Array.includes instead of manually writing a chain of logical ORs

lodash clonedeep vs json.parse(stringify()) vs recursivecopy vs structuredClone 1234

No description provided

startsWith vs indexOf with Array.filter for user dataset

No description provided

JavaScript spread operator vs Object.assign performance GifCo

Perf test of Spread vs Object.assign()

Trim vs regex

Check for valid input by doing string.trim() or /./.test(text)

Set Has vs Array Includes Smaller

Comparing performance of Set.has() vs Array.includes()

test international

No description provided

array find vs for-loop vs while

No description provided