Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Object.fromEntries vs reduce vs Map vs foreach

No description provided

Uint8Array vs Uint8ClampedArray

No description provided

Object.fromEntries vs reduce vs Map with small objects

Test with small objects

new Array() vs []

No description provided

Fastest isEmpty(Object)

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

"array length === 0" vs "!(0 in array)"

this is really stupid but is surprisingly close i guess

React svg inline vs use 500x Phosphor Bell

No description provided

React svg inline vs use 500x (2)

No description provided

Loadash vs underscore simple and complex

No description provided

lodash uniq vs set->array

No description provided

Ctrl: flatMap() vs filter().map() vs reduce() v2

flatMap() vs filter() & map() vs reduce()

Ctrl: flatMap() vs filter().map() vs reduce()

flatMap() vs filter() & map() vs reduce()

javascript LARGE concat vs spread operator vs push v4

No description provided

map vs obj vs array 2

No description provided

map vs obj vs array

No description provided

javascript LARGE concat vs spread operator vs push v3

No description provided

if vs callback vs currying condition comparison ver_2: static handle

No description provided

javascript LARGE concat vs spread operator vs push

No description provided

Map vs Array vs Set vs Object set uint32 key speed fork

No description provided

1k1po2jjajsjsapa

aaaaa

Arrow function vs normal function comparison 3

No description provided

scrollTop vs scrollTo vs scrollBy vs scroll

No description provided

Spread vs Object.assign vs Object.keys with forEach (without new object)1

No description provided

structuredClone vs spread vs Object.assign + more

Note!: none of these tests actually do the same thing, and the data in the example is simple. consider also using arrays: those are nice. Some of these are shallow, some of these are deep-ish. Data is lost through JSON serialization and back, and more data would be lost in JSON and other methods depending on the data stored.

Array concat vs spread operator vs push (via for loop)

Compare the new ES6 spread operator with the traditional concat() method and push