Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

setAttribute, classList with css

No description provided

setAttribute, classList

No description provided

Covert Node List to array

No description provided

JavaScript spread operator vs Object.assign performance v2022

No description provided

setting property vs Object.assign

No description provided

Sliding Window Maximum from Leetcode

No description provided

Set vs Filter for unique for me

No description provided

8x addEventListener('resize') VS matchMedia()

This benchmark compares using `addEventListener('resize')` with window.innerWidth VERSUS window.matchMedia with its `addListener()` function to see which is faster, when checking multiple conditions (8 different sizes, in this case).

Ramda vs. Lodash (without chain)

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.

Map vs Object 3

Lookup of map vs object

xyzabc123

No description provided

xyzabc

No description provided

lodash chain vs set

No description provided

set by path recursive vs while loop v2

No description provided

set by path recursive vs while loop v1

No description provided

structuredClone vs spread vs Object.assign()

No description provided

structuredClone vs spread

No description provided

Object.is(value, -0) vs 1/value === -Infinity

No description provided

find() vs for...of vs for-ggggloop

Testing the difference between native loops and find()

lodash reverse vs native Array.prototype.reverse

Comparing performance of: lodash reverse vs native Array.prototype.reverse

Object: Iterate keys

Iterate the keys of an object in a few different ways.

lodash clonedeep vs json.parse(stringify()) vs deepClone v6

No description provided

lodash clonedeep vs json.parse(stringify()) vs deepClone v5

No description provided

lodash clonedeep vs json.parse(stringify()) vs deepClone v4

No description provided

1000 Objects in a 10000 Object Pool; Array find vs Map get - using string keys

Comparing array find vs map get