Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

dayjs vs luxon between

No description provided

dayjs vs luxon timeToEnd

No description provided

dayjs vs luxon withTimezoneFromString

No description provided

dayjs vs luxon currentDate

No description provided

String.concat vs array.join

No description provided

Sort with compare inside/outside with try catch

test

JavaScript a.includes(i) + a.push(i) vs new Set(a) + concat() + ...spread

new Set() vs conditional push()

pos vs neg for loops 2

No description provided

split vs splitstring

No description provided

Deep copy comparison gil

Benchmarks for StackOverflow question on deep copy techniques https://stackoverflow.com/questions/7486085/copy-array-by-value/23536726#23536726

Set.has() vs Array.includes() vs Array.indexOf() vs Array.lastIndexOf() vs Map.has()

No description provided

runtest

411

add fields to objects in array

speed of different variants of adding field into objects in array

lodash camelCase vs javascript snake to camelcase only using regex

No description provided

forEach mutate object vs map spread copy v2

add field into object with forEach vs spread fields into new object with new field in array of objects

lodash camelCase vs javascript regex with predefined regex

No description provided

new class from fn vs function returning obj from fn 2

Measure the performance of instanceOf operator vs comparing a basic string type.

Map vs Object (real-world) Performance (better) 2

Lookup of map vs object (in a real-world test format)

Set has vs object key vs map has

performance comparison of ways to find if an array contains a value

Date.parse vs new Date(int)

No description provided

moment vs custom parse

No description provided

Set has vs object key 3

performance comparison of ways to find if an array contains a value

Plain object access vs Proxy vs Property

No description provided

pop vs index for array

Comparing pop method vs last index check for an array element

InstanceOf vs String type vs Number type

Measure the performance of instanceOf operator vs comparing a basic string type.

NEW BENCHMARK Your Benchmarks