Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array of Objects to Object with keys Object.fromEntries v Object.assign

Convert an array of objects to an object whose keys are derrived from a property on each object in array.

eval vs new Function (including parse)

No description provided

boolean vs math length

No description provided

OffsetScreenCanvas.measureText VS. Canvas.measureText

No description provided

parseFloat for me

No description provided

window.getComputedStyle vs. getBoundingClientRect vs clientHeight

No description provided

calculate time once vs multiple comparisons

No description provided

Reduce vs. Find

No description provided

Object Deep Copy (with structuredClone)

Produce a deep copy of a Javascript object where nested objects are not simply references to the originals.

String compares (sensitive & insensitive & undefined)

No description provided

String compares (sensitive & insensitive)

No description provided

JavaScript spread operator vs Object.assign performance ( nested objects ) into empty object

No description provided

var let const var let const

No description provided

Regex removing whitespace vs trim 3

testing removing end whitespace vs trim

Regex removing whitespace vs trim 2

testing removing end whitespace vs trim

try vs if // no error

No description provided

try vs if

No description provided

var vs let vs const v2

No description provided

compate trunc vs parseInt

No description provided

JavaScript spread operator vs Object.assign performance ( nested )

No description provided

lodash vs ES6 sortby native fix

No description provided

lodash vs ES6 sortby native

No description provided

lodash uniq vs native uniqoififie3f02i409rfi23k

No description provided

Switch vs Object Literal value return

return primitive values instead of functions

lodash intersectionWith vs array filtering with includes and map

No description provided