Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

for + for or reduce

for + for or reduce

Ramda vs. Lodash 2021

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits.

pop vs length 123456 22

asd asd asd asd asd

array bool find vs some

without PENDING

array boolean find vs some

No description provided

Array.includes vs json[key]

No description provided

for loop comparison test modernized ES6

No description provided

test branching or no branching (fix control)

test branching or no branching

getCookie: for vs for...of vs indexOf vs find vs reduce

Performance comparison of 5 functions to get Cookie value from a document.cookie string.

iso date string sort comparison

compares ways of sorting a list of dates in the form of ISO dates

find() vs indexOf() vs for...of vs for-loop - bigger array

Testing the difference between native loops and find() with a bigger array of 10,001 elements :) Fixed bug in the original test forked from: https://www.measurethat.net/Benchmarks/Show/4261/0/find-vs-forof-vs-for-loop (node.id is undefined in find() test)

isNumber: regex vs isNaN vs string comparison (version: 1) vs parseInt 2

another attempt

isNumber: regex vs isNaN vs string comparison (version: 1) vs parseInt

No description provided

Lodash filter length vs sumby 20211125

No description provided

childNodes vs children vs firstChild vs firstElementChild

Fastest way to list children

document.body vs document.querySelector

No description provided

isNumber: regex vs isNaN vs string comparison (version: 1)

No description provided

parseFloat vs Number.parseFloat

No description provided

Number.parseFloat vs parseFloat

No description provided

className.includes vs classList.contains

No description provided

For in vs Object.keys.forEach vs For of Object.keys

No description provided

toString vs string template literal vs String()

No description provided

toString vs string template literal

No description provided

JavaScript fastest way to clone an object + JSON copy

Comparing performance of: Using the spread operator vs Using Object.assign vs Manually copying properties vs Create new object while copying vs Create new object from scratch

Boolean constructor vs double negotiation trick in javascript - with added single negation test

No description provided