Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

FindIndex + splice vs filter FindIndex

No description provided

for vs foreach vs for..of vs for..of over entries

Compare loop performance

Regex Compare

No description provided

Search in array of strings

No description provided

for of vs Array.reduce vs Array.forEach vs for i for summing and array of integers

Test which looping method has the best performance regarding getting the total sum of an array of integers in Javascript

RegEx vs For Loop 2

-

Closure vs arrow function fork

No description provided

Generic TreeWalker vs querySelectorAll vs getElementsByTagName

No description provided

ramda merge.all vs object.assign vs spread

No description provided

javascript concat vs spread operator vs push

javascript concat vs spread operator vs push

new Array from vs slice vs push vs index vs spread

No description provided

Canvas test

test

3xif||regexp2

Test the performance of replace() vs substring() vs slice() when replacing a char at the beginning of a (in this case uri query-)string that may or may not be there. Added the combined brackets[ ] + substr() method, since it's always the first char we wan't to pop off. Inspired by https://jsperf.com/replace-or-substr. Note: could not get 'let' and 'const' to work. Well, too bad...

replace vs substring vs slice from beginning (+ brackets, substr, compiled vs inline regex) rulez

Test the performance of replace() vs substring() vs slice() when replacing a char at the beginning of a (in this case uri query-)string that may or may not be there. Added the combined brackets[ ] + substr() method, since it's always the first char we wan't to pop off. Inspired by https://jsperf.com/replace-or-substr. Note: could not get 'let' and 'const' to work. Well, too bad...

IndexOf vs Includes vs _.includes for number array

No description provided

Typeof x === 'undefined' vs x === undefined (test without syntax error)

No description provided

Lodash set with clonedeep vs set FP

Difference between a set where we do a cloneDeep first and a set from FP. This is useful when writing Redux reducers.

function vs class

No description provided

Access Object, Map, Array, Set

No description provided

lodash/keyBy vs native reduce 2

No description provided

Array.prototype.findIndex vs Array.prototype.map + Array.prototype.indexOf

No description provided

Lodash isEmpty vs Object.keys().length

No description provided

lodash merge vs deepmerge vs ramda

No description provided

Methods to remove duplicates from array

No description provided

template innerHTML vs DocumentFragment vs createElement - createTextNode

No description provided

NEW BENCHMARK Your Benchmarks