Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

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

Array.find() vs for loop

No description provided

Hex To RGB

No description provided

substr vs substring vs slice

No description provided

Object.keys vs Object.entries vs Object.values

No description provided

(ColorfulCakeChen) Image Scaling (9ca837f1098a638010ec0d49bc7925063226de8b) 98

No description provided

id performance comparison

No description provided

detecting if var is instance of class

No description provided

Immer freeze comparison2

No description provided

JS instanceof vs in

No description provided