Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

for-in vs for-in hasOwnProperty vs object.keys forEach

for-in for-in hasOwnProperty object.keys forEach

substr vs substring (with end index)

Compares slice, substr and substring to each other when there is only a start index

isNumber: regex vs isNaN with cached regex

judge an object property key is a number

Measure text

No description provided

Greedy vs non-greedy

No description provided

Measure texts - OffscreenCanvas vs Canvas

No description provided

concat vs lodash.concat vs. push.apply vs. spread operator vs. push in for loop (fixed spread)

Ripped off from another user but fixed a bug in "spread"

for-in vs object.keys no cycle

No description provided

ByteByte

bytymighty

Search in array - find vs for loop vs object vs map

Compare different ways to search objects in an array given its id.

Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Dates.

Test on isEqual performance

Lodash.get vs Property dot notation nested vs optional chaining

No description provided

Lodash.get vs Property dot notation deeply vs optional chaining

No description provided

Lodash omit Vs. es6 rest spread random keys

No description provided

chunk list of objects

No description provided

Test qwe qweqw

Test

Array.includes vs Set.has vas Map.has

No description provided

setAttribute vs dataset.attrName

No description provided

Object.keys vs Object.getOwnPropertyNames - objects with 0 keys

No description provided

Object.keys vs Object.getOwnPropertyNames - objects with 100k keys

No description provided

double-bang-vs-boolean-cast

!!x vs Boolean(x)

compose_check

No description provided

Instanceof vs string comparison vs property checking vs constructor comparison

Measure the performance of instanceOf operator vs comparing a basic string type.

EGO concat vs spread Small Array

No description provided

ISO Date parsing split vs slice

Comparison of using split('T') or slice(0, indexOf('T')) in parsing out a date from an ISO string. Does not include any extra checking from the indexOf to ensure proper formatting of the string. Does not include array size checking after the split.