Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Object arrays: findIndex vs for loop for finding and editing an array item.

Test finding an object array via findIndex or by using a for loop, and edit the value of that index.

regex vs compiled regex vs includes

Compares the difference in performance between regex, compiled regex and includes.

instanceof vs typeof vs fast typeof object

No description provided

custom_deepEqual vs. lodash.isEqual

No description provided

jQuery .first() vs :first vs .filter(:first) vs .eq(0) vs $(.get(0)) vs $([0]) [2]

No description provided

Deep equal

Compares deeply two objects

parseInt vs Number vs plus

No description provided

lodash shuffle vs js native

const shuffleColor = (array) => { const length = array === null ? 0 : array.length; return length ? array[Math.floor(Math.random() * length)] : undefined; };

Date.parse vs new Date from string

No description provided

pop() vs shift() vs unshift vs pop

No description provided

contains2 vs closest2

No description provided

axios vs node-fetch

No description provided

Array.from vs Spread on arrays

No description provided

JavaScript spread operator vs Object.assign vs only-null-checked for-in loop performance

Measure the fastest way to merge objects, without mutation.

JavaScript spread operator vs Object.assign vs null-checked for-in loop performance

Measure the fastest way to merge objects, without mutation.

JavaScript spread operator vs Object.assign vs type-checked for-in loop performance

Measure the fastest way to merge objects, without mutation.

JavaScript spread operator vs Object.assign vs for-in loop safe performance

Measure the fastest way to merge objects, without mutation.

JavaScript spread operator vs Object.assign vs for-in loop performance

Measure the fastest way to merge objects, without mutation.

querySelectorAll.forEach() vs [...getElementsByClassName].forEach()

No description provided

6 properties - style.setProperty vs attributeStyleMap.set vs attributeStyleMap.set with parsed values

No description provided

ReplaceAll (regular expression, native API, split and join)

No description provided

ReplaceAll

No description provided

flatten : Array.flat() vs Ramda

No description provided

for forEach fixed

No description provided

Micromark vs markdown-it parser

No description provided

NEW BENCHMARK Your Benchmarks