Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Date: Object.prototype.toString vs instanceof

No description provided

replace vs replaceAll xxx

No description provided

Loop vs find 2

loop performance

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 object2

No description provided

instanceof vs typeof vs fast typeof object

No description provided

var example = 'there is no spoon'

No description provided

Deep object equalA and equalB

Compares deeply two objects

Deep object equal

Compares deeply two objects

Yepo_deepEqual vs. lodash.isEqual v1.1

Aim to optimize object deepEqual algorithm in JS

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

String.match vs. RegEx.test (MongoDB ObjectID)

No description provided

is variable undefined? typeof variable === "undefined" vs variable === undefined. WIth variable

Comparing whether checking is (typeof variable === "undefined") is faster than (variable === undefined)

for vs find vs map vs foreach just longer

No description provided

for vs for (reverse) vs forEach vs every

No description provided

domino chain alg

No description provided

Deep clone custom

No description provided

replaceAll vs naive implementation

No description provided

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

Trimming leading/trailing characters from string

No description provided