Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

lodash xor / sets / includes perf

Searching for faster solution for _.xor(a, b)

lodash/keyBy vs native map

No description provided

array.length vs array.length > 0 vs array.length !== 0

No description provided

.prototype.isPrototypeOf vs .prototype.isPrototypeOf.bind vs Object.prototype.toString.call vs shorthand for Object.prototype.toString

No description provided

JSON.parse(JSON.stringify()) vs structuredClone

cloneDeep

random Some vs Find

No description provided

SetProperty vs CSSStyleSheet

No description provided

FORK: removeChild vs display="none" performance benchmark v2

This benchmark is a fork of a different one. This time, using a different way to iterate childs for display:none. I was worried the original benchmark was not being fair.

hole array test

No description provided

.split() vs .replace()

test

declare test

No description provided

getElementById vs querySelector vs getElementsByName

No description provided

innerHTML vs innerText vs textContent ..

No description provided

For in vs Object.*.forEach vs Object.values #3

No description provided

For in vs Object.*.forEach vs Object.values #2

No description provided

Array Shallow Copy: Array.prototype.slice() vs. Array.prototype.concat() vs. Spread syntax vs. Array.from()

No description provided

Array with objects concatanation (1)

Array.prototype.concat vs lodash.concat vs. push.apply vs. spread operator vs. push spread operator vs. push in for loop

append multiple vs appendChild documentFragment (2)

No description provided

append multiple vs appendChild documentFragment

No description provided

void 0 and undefined in deep call stack - 5

Check performance degradation due to scope chain when undefined is called from deep stack

void 0 and undefined in deep call stack - 4

Check performance degradation due to scope chain when undefined is called from deep stack

void 0 and undefined in deep call stack - 3

Check performance degradation due to scope chain when undefined is called from deep stack

void 0 and undefined in deep call stack - 2

Check performance degradation due to scope chain when undefined is called from deep stack

void 0 and undefined in deep call stack

Check performance degradation due to scope chain when undefined is called from deep stack

innerHTML vs innerText vs textContent Setting

No description provided