Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

undefined vs. typeof vs. in vs. hasOwnProperty vs bool vs Object.hasOwn

Object lookup performance

Test if if and if else

No description provided

fisrtchild/lastchild/innercontent performance

remvoe children from DOM container

JS Regex vs .startsWith vs .indexOf and lastIndexOf

fork of https://www.measurethat.net/Benchmarks/Show/975/11/regex-vs-indexof-vs-startswith-vs-substr "aaa".IndexOf("a") will fail for ends with

Lodash _.union vs native Set() and Set to Array

No description provided

object creation+method lookup: new, object.create, literal+proto

No description provided

object creation: new, object.create, literal+proto

No description provided

js.indexof.speed.text

comparing large vs small search strings with indexOf function

Convert string to number

Perform string number to number type

luxon vs datefns vs moment vs new Date

No description provided

lodash.get vs optional chaining(babel) vs optional chaining(es2020) vs Without Optional chaining

Compare lodash.get to babel transpiled ?. (optional chaining) operator

replaceall-vs-regex

No description provided

switch vs dictionary lookup

Performance comparison between javascript switch and a dictionary lookup for a simple string return

spread vs assign vs _.merge vs for

No description provided

Loop over object: lodash vs Object.entries vs Object.keys vs Object.values vs for of vs for in vs keys for of

No description provided

Lodash vs Javascript Regexp Intersection (Fix)

No description provided

Lodash vs Javascript Regexp Intersection

No description provided

JSON clone vs structuredClone

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

Array with and without predefined sizes

No description provided

Array with and without predefined size

No description provided

_.isEmpty vs Object.keys.length on array

No description provided

Lodash 4.17.21 some vs JS some

No description provided

Performance Test: substring vs substr vs slice 5

No description provided

Performance Test: substring vs substr vs slice 1

No description provided

String() vs .toString() vs `${}`

No description provided