Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

filter vs flatMap v2

No description provided

filter vs flatMap

No description provided

function(){} and ()=>{}

No description provided

Object.fromEntries vs reduce test 4

No description provided

Object.fromEntries vs reduce test 2

No description provided

lodash isPlainobject vs valina JS

No description provided

childNodes vs children vs firstChild/nextSibling vs firstElementChild/nextElementSibling (optimized html)

Fastest way to list children

new Array(n) vs []

I want to see which one is more efficient

typeof x === 'number' vs Number.isNaN(x)

check what is faster

dayjs vs luxon vs js-joda vs date-fns (parsing)

No description provided

Split vs Spread (randomized)

No description provided

Find min number

Conclusion: If your array length is small (less than 200) use Math, otherwise for large dataset "For loop" is faster.

dayjs vs luxon vs js-joda vs date-fns (calculating)

No description provided

dayjs vs luxon vs js-joda vs date-fns (manipulating)

No description provided

dayjs vs luxon vs js-joda vs date-fns (comparing)

No description provided

dayjs vs luxon vs js-joda vs date-fns (formatting)

No description provided

Access to Proxy vs Object vs eval

No description provided

window.getComputedStyle vs. getBoundingClientRect 1111

No description provided

str.match vs str.Split in regex

Test String.match with regex against String.split with string. We are splitting a string at the spaces.

parseInt value comparison

No description provided

remove first item of array

No description provided

chain of or equals vs includes but smaller

how much of a performance deficit you can expect from using Array.includes instead of manually writing a chain of logical ORs

aaaabbbnmmbhjhgsdfsdff

bbbbbsdfnjmym,s

aaaabbbnmmbhjhgsdf

bbbbb

aaaabbbnmmbhjhg

bbbbb