Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array.prototype.slice vs spread operator long with push

Compare the new ES6 spread operator with the traditional slice() method

Push element using Array.prototype.slice vs spread operator

Compare the new ES6 spread operator with the traditional slice() method

Testing Here

Testing Here

DataAttribute vs Class Selector vs ID Selector vs Custom Attributes

No description provided

classList.contains vs. Set vs regex

No description provided

hasOwn vs hasOwnProperty vs typeof

Object lookup performance

Case insensitive string comparison performance

No description provided

replacer string vs function 2

No description provided

DOM modification getElementById pre-buffered vs direct /w counter

No description provided

DOM modification getElementById pre-buffered vs direct

No description provided

getElementById pre-buffered vs direct

No description provided

buffered getElementById vs non-buffered

No description provided

class vs id test 3

No description provided

class vs id test

No description provided

Option chaining and typeof 2

No description provided

Option chaining and typeof

No description provided

lodash merge vs object.assign vs spread 22222

No description provided

replace vs substring vs slice from END

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

Array loop vs foreach vs map vs while (fixed v2)

No description provided

Object.assign vs spread operator vs foreach set 2

No description provided

Object.assign vs spread operator vs foreach set

No description provided

Object.assign vs foreach set

No description provided

length = 0 vs reassignment

No description provided

asdasds

a

Object.fromEntries vs reduce 100000

No description provided