Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

toFixed vs toPrecision vs Math.round() to 1 decimal place

No description provided

querySelectorAll(*) vs getElementsByTagName(*) iteration

No description provided

replaceAll vs regex replace vs split&join

No description provided

Lodash orderBy() vs array.prototype.sort

No description provided

[Fixed] querySelectorAll vs. getElementsByClassName

No description provided

DataAttribute vs Class Selector vs ID native Selector

No description provided

Object vs Map 5

No description provided

regex performance with test and exec

No description provided

split-join vs regex replace

No description provided

Switch vs javascript map

No description provided

rest vs array 1000 entity

rest vs array 1000 entity

clientWidth / clientHeight vs. getBoundingClientRect()

No description provided

Two lambdaless filters vs one lambded v2

No description provided

str.match vs str.Split(regex)

Test String.match with regex against String.split with regex. We are splitting a string at the spaces.

looking up the last character of a string

tests with a short string and a long string, to help discern which methods are tied to the string length, and which are not.

Deep merge lodash vs ramda vs deepmerge vs json clone

No description provided

6 properties - style.setProperty vs style.cssText vs style vs Object.assign vs setAttribute

No description provided

eval vs parseInt vs Number vs JSON.parse

No description provided

jQuery parent() vs closest() speed performance comparison

No description provided

eval vs parseInt

No description provided

lodash toInteger vs parseInt

No description provided

object deep comparison

No description provided

lodash merge vs deepmerge latest CDN

No description provided

addEventListener('resize') + innerWidth 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.

Direct call vs bind vs call vs apply spred

No description provided

NEW BENCHMARK Your Benchmarks