Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

deep copy

No description provided

nodeType vs instanceof 3

No description provided

nodeType vs instanceof 2

No description provided

Fastest way to check if array have an element returning true or false (2)

[1,2, 3, 4, 5].indexOf(4) !== -1 [1,2, 3, 4, 5].filter(a=> a ===4).length > 0 [1,2, 3, 4, 5].find(a => a === 4) !== undefined [1,2, 3, 4, 5].some( a => a === 4) ![1,2, 3, 4, 5].every( a => a !== 4) [1,2, 3, 4, 5].lastIndexOf(4) !== -1 [1,2, 3, 4, 5].includes(4)

lodash get vs myget function

test

Immer (setAutoFreeze(false)) vs Lodash cloneDeep 22

No description provided

Select n

No description provided

concat() vs spread operator

Performance comparison of two methods of combining arrays shown here: https://twitter.com/SimonHoiberg/status/1287797397137965057

lodash get vs myget

xcbdfb

querySelector(tag) vs querySelector(#ID)

test querySelector by tag against ID when only one element of that tag name exists

object functions vs if statements 3

No description provided

object functions vs if statements 2

No description provided

test: loop vs keys

No description provided

test1: for...in vs Object.keys().forEach();

No description provided

For in vs object keys test

For in vs object keys test

Lodash cloneDeep VS spread operator ts

No description provided

My Bench

No description provided

Ultimate DOM Manipulation Benchmark (NodeList.classList.remove)

No description provided

Ultimate DOM Manipulation Benchmark (NodeList.classList.add)

No description provided

Ultimate DOM Manipulation Benchmark (NodeList.setAttribute using class name)

No description provided

Ultimate DOM Manipulation Benchmark (NodeList.setAttribute)

No description provided

Ultimate DOM Manipulation Benchmark (Element.setAttribute)

No description provided

Ultimate DOM Manipulation Benchmark (Element ID Selection)

No description provided

getElementById, querySelector, querySelectorAll, and ki.jsroutine

No description provided

getElementById, querySelector, querySelectorAll, and salt.js routine

No description provided