Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Object.setPrototypeOf vs Object literal

No description provided

Object.create vs Object literal

No description provided

isArray vs instanceof vs typeof

No description provided

instanceof Array vs Array.isArray

No description provided

findIndex vs _sortedIndexBy vs custom sortedIndexBy

No description provided

replace vs split and join

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...

Javascript slice vs substring

No description provided

querySelector vs getElementsByTagName

No description provided

native find() vs lodash _.find() vs native some()

No description provided

Json parse vs string split

Test best way to transfer simple arrays

replaceAll vs replace

No description provided

lodash uniq vs [...new Set]

No description provided

Int conversion

No description provided

_.isEqual() vs _.xor()

No description provided

memoize test

No description provided

flatMap() vs filter().map() vs for loop accumulator

flatMap vs filter map

eval vs reflect

No description provided

es6 map access with string vs symbol keys 12

No description provided

es6 map access with string vs symbol keys 2

No description provided

es6 map access with string vs symbol keys.

No description provided

Object.fromEntries vs reduce vs for

No description provided

Switch vs Object Literals

No description provided

javascript array.filter().map() vs array.flatMap()

No description provided

new Intl.DateTimeFormat vs new Date().toLocaleDateString() correct 2

No description provided

Math.pow vs ** with Random, float exponent

No description provided

NEW BENCHMARK Your Benchmarks