Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

We test stuff!

No description provided

isArray-2

Array.isArray vs Object.prototype.toString vs [].constructor vs instanceof vs bool

array.includes vs. set.has on the fly

No description provided

replace vs substring 2

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

promise vs callback 123

No description provided

Lodash.isEqual vs JSON.stringify Equaliparison for large json

Test on isEqual performance

reduce vs. filter + map vs. forEach - list 100k

No description provided

Filtering and mapping with .filter(...).map(...) vs .flatMap(...) vs custom filterMap(...)

No description provided

Filtering + Mapping

No description provided

Add item to array: push vs spread vs assign vs assign with from:

No description provided

lodash/keyBy vs native reduce vs Object.groupBy 2

No description provided

Obfuscator vs. non obfuscated

No description provided

Set->Array.from vs iterative pushing 10k

No description provided

Set->Array.from vs iterative pushing

No description provided

Promise vs async vs callbacks

Promise vs async vs callbacks

xrange highcahrts data series parsing

parsing data json to create xrange highcharts graph

Compare dates without time 2

No description provided

2023 js qs

No description provided

querySelector benchmark

No description provided

slice vs filter lzg

No description provided

array indexOf (gt -1) vs includes vs some

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

Object key access vs array find vs Set

Test speed of object access by key vs array find to find object

replace test ogehogehoge

No description provided

add many elements to beginning of array: unshift vs splice vs push+sort

No description provided

add many elements to beginning of array: unshift vs splice

No description provided