Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

JavaScript spread operator vs Object.assign performance 2002

No description provided

JavaScript spread operator vs Object.assign performance 2001

No description provided

JavaScript spread operator vs Object.assign performance 2000

No description provided

Passing data to function as parameter list vs other methods (static, new, re-used & global - vars, objects & arrays)

Compares performance of a function call with parameter list, against other methods of getting the data into the function

Passing objects with raw values vs passing new objects with raw values vs passing just raw values vs array of values 2

Updated to add 'Pass new object' & 'Pass re-created object', these reflect common real-world usage where the object contents are changing

undefined vs. typeof vs. in vs. hasOwnProperty vs hasOwn

Object lookup performance

computed property names vs create, assign

No description provided

JS: split vs slice

No description provided

array.pop vs array[index]

No description provided

ID vs Class Speed

No description provided

JOSH's flatMap() vs map().filter()

flatMap vs map filter

plus vs template literals vs String.concat

find best solution for concatenate strings

klona vs structuredClone

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

map.set vs array.push

No description provided

IndexOf vs Includes in string email

No description provided

flat map vs reduce concat

No description provided

.map().flat() vs .flatMap()

No description provided

Filter + join vs while + str

No description provided

djkencioemzio foreach vs for loop

No description provided

toString() vs +""

No description provided

structuredClone vs JSON.parse + JSON.stringify on a really big object

No description provided

structuredClone vs JSON.parse + JSON.stringify

No description provided

Regex vs indexOf+substring

No description provided

Map get VS Map has

Map get VS Map has get

Lodash.js vs Native 10000

No description provided