Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array.prototype.slice vs spread operator (updated)

Compare the new ES6 spread operator with the traditional slice() method

innerHTML vs replaceChildren() vs removeChild()|appendChild(cloneNode())

No description provided

JavaScript spread operator vs spread to params

No description provided

JS: append vs appendChild s

No description provided

flatMap() vs filter().map() vs reduce vs for with indexed for

flatMap vs filter map vs reduce vs for looop

For in vs Object.*.forEach vs Object.values different

No description provided

Comparison of three map functions

There are three map functions. 1. Function with optimizations 2. The most common implementation of map 3. Native map as a function method

babel transpiled optional chaining vs safeGet vs optional chaining

No description provided

babel transpiled optional chaining vs safeGet

No description provided

typeof vs comparison

No description provided

slice VS splice VS shift: who is the fastest to keep constant size 123123

100k list splice and shift win, they mutate list slice loose, it creates a copy of list 7.5x slower

for vs for ... of 2

No description provided

includes vs. find

No description provided

Spread operator vs Array.prototype.concat() for large arrays

Which one is fastest?

Spread operator vs Array.prototype.concat()

Which one is fastest to concat new item to an array?

Number vs parseInt vs +string

No description provided

Testsssssssssssss

No description provided

toString vs +[]

comparing the already fast toString to jsfuck-string conversion +[]

replaceall rgc/string

replaceall with regex en string

My Slice vs Regex

No description provided

compare negative zero

No description provided

Math.sign(-0)

No description provided

jQuery vs getElementById vs querySelector vs jQuery Find

Comparing speed of getting element by id with jQuery vs Vanilla JS with getElementById and querySelector

Previous simple selector vs Current more complex selector

No description provided

Object assign vs spread operator vs manual assign

Testing how these fare against each other to create a new object (no nested objects). The tests will also change one of the properties in the new object.