Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Map vs Array vs Set vs Object set uint32 key speed fork

No description provided

1k1po2jjajsjsapa

aaaaa

Arrow function vs normal function comparison 3

No description provided

scrollTop vs scrollTo vs scrollBy vs scroll

No description provided

Spread vs Object.assign vs Object.keys with forEach (without new object)1

No description provided

structuredClone vs spread vs Object.assign + more

Note!: none of these tests actually do the same thing, and the data in the example is simple. consider also using arrays: those are nice. Some of these are shallow, some of these are deep-ish. Data is lost through JSON serialization and back, and more data would be lost in JSON and other methods depending on the data stored.

Array concat vs spread operator vs push (via for loop)

Compare the new ES6 spread operator with the traditional concat() method and push

Includes vs. IndexOf vs. Filter vs. Find vs. FindIndex vs. Some vs. Map

No description provided

String manipulation performance test v2

No description provided

Native Loop

No description provided

manual replace vs regex replace

No description provided

class set get (getters, function, direct)

No description provided

instanceof vs namespaceURI

No description provided

Lodash.countBy vs native filter

Lodash.countBy vs native filter

insertAdjacentHtml vs innerHTML (multiple)

insertAdjacentHtml vs innerHTML

filtering array with push vs reduce with fewer elements

No description provided

filtering array with push vs reduce

No description provided

Replace first or not

No description provided

Lodash forEach VS native for loop VS native forEach VS native map

No description provided

deepCopy perf test

Structured clone vs manual deep copy function vs JSON stringify vs {...}

Array vs Object vs Map vs WeakMap access 01920122

No description provided

JSON Stringify Speed Test 1

This benchmark tests whether the speed or JSON.stringify changes with object size

luxon vs datefns vs moment vs day.js

No description provided

Calling a function inside whatever

const, obj literal, function, prototype, class

shift and push vs slice

No description provided