Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

elementFromPoint

No description provided

Slice vs Splice vs Shift for 1 item

Compares the speed for removing 2 items from the beginning of an array

Object access vs array find vs array filter to 100 data

No description provided

+"" vs .toString()

No description provided

string to array, push vs concat

No description provided

Last element (Native vs Ramda vs Lodash)

measures the speed of ramda's last vs Array's native at(-1) vs lodash last

Test remove node performance (with new nodes added)

I suspect .textContent = '' should be faster, why are benchmarks saying it isn't? It makes no sense. So let's try adding nodes to clean up?

String: Includes vs equality check

No description provided

json stringify vs object tostring number thresholds

No description provided

instanceof vs property in

Measure the performance of instanceOf operator vs property in operator

Intl.Collator.compare vs String.prototype.localeCompare (v8 ASCII fast path)

No description provided

splice vs filter (delete from array)

Comparison of "splice" and "filter" methods for removing an element from an array.

array.length !==0 vs array.length > 0

No description provided

querySelector(class) vs classList.contains

HTML DOM querySelector, vs looking into classList of element which already have

Comparison of classes vs prototypes vs object literals also including the inheritance

Test the speed and memory usage using different techniques for constructing class objects. It tests ES6 classes, ES6 classes with private objects, Function Prototype and Object literal. For ES6 classes (with and without private objects) and Function Prototype it also tests inheritance.

JS Filter Test large array (50000 objects)

No description provided

addEventListener('resize') + innerWidth + debounce VS matchMedia() + matchMedia.addListener()

This benchmark compares using `addEventListener('resize')` with window.innerWidth versus window.matchMedia with it's`addListener()` function to see which is faster.

JUST Object.entries VS Object.keys VS Object.values

No description provided

access object vs array

No description provided

JavaScript V8 Array.push vs spread operator

Which is faster

Is ternary operator, if-else or logical OR faster

No description provided

computedStyleMap vs getComputedStyle

No description provided

number / bignumber.js / big.js / decimal.js

- https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Number - https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0

innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement 2

innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement 2

test matches vs querySelectorAll

No description provided

NEW BENCHMARK Your Benchmarks