Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Map vs Object hasOwnProperty

Lookup of map vs object

mustache rendering performance 3a

nya nya nya

Test if array is empty

No description provided

Funfunc

F

JSON query

No description provided

array indexOf vs includes vs some vs Set has

performance comparison of ways to find if an array contains a value

fromArray or desctucturing to convert Set to array

No description provided

Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings.214

Test on isEqual performance

Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings.c

Test on isEqual performance

some vs for..of (with condition)

some vs for...of

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