Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

iloop - console.log vs. ptag vs. ctag vs. slim vs. ptag no-log (logLevel=0) vs. ptag native-bypass (logLevel=-1) vs. ptag NO_COLOR

A looped version of the ptag test that prints a new line and number instead of updating the devtool's inline counter

console.log vs. ptag vs. ctag vs. slim vs. ptag no-log (logLevel=0) vs. ptag native-bypass (logLevel=-1) vs. ptag NO_COLOR

No description provided

AlgoBenchmark

No description provided

4-number (float) Array.slice() vs. Spread operator

For times when a shallow copy of an Array is needed, what is the performance difference between these 2 methods.

4-element Array.slice() vs. Spread operator

For times when a shallow copy of an Array is needed, what is the performance difference between these 2 methods.

4-tuple array slice vs spread operator

No description provided

JS some vs Lodash some with callback vs Lodash some with object

No description provided

User Agent search

No description provided

`filter().length` vs. `reduce` 2

Compare `filter().length` vs `reduce` vs `for` loop for counting array elements that are present in another array.

adding elements

No description provided

add elements

No description provided

createContextualFragment vs insertAdjacentHTML long HTML strings repeat 10

createContextualFragment vs insertAdjacentHTML: Incrementally append long HTML strings.

innerHTML vs insertAdjacentHTML vs createContextualFragment long HTML strings repeat 10

innerHTML vs insertAdjacentHTML vs createContextualFragment: Incrementally append long HTML strings.

Sort vs reduce with objects

Sort and reduce when used with an object

In-Memory vs LocalStorage vs SessionStorage

No description provided

insertAdjacentHTML vs appendChild vs append vs insertAdjacentElement vs innerHTML repeat 1000

insertAdjacentHTML vs appendChild vs append vs insertAdjacentElement vs innerHTML

New set vs set clear (working)

No description provided

ES6 Class vs Prototype vs Object Literal vs Array

Test the speed and memory usage using 3 different techniques for constructing class objects.

string vs number vs symbol (isolated from symbol creation logic)

No description provided

includes-mapping-set

No description provided

OffscreenCanvas measureText Japanese

DomCanvas vs OffscreenCanvas

querySelector() vs getElementsByTagName()[0] prerun

No description provided

querySelector() vs getElementsByTagName()[0]

No description provided

querySelector Checked vs Jquery prop

No description provided

Set constructor from array.map vs array.forEach(.add)

No description provided