Benchmark name When Created
DataAttribute vs Class Selector vs ID Selector vs Custom Attributes one year ago
classList.contains vs. Set vs regex one year ago
hasOwn vs hasOwnProperty vs typeof

Object lookup performance

one year ago
Case insensitive string comparison performance one year ago
replacer string vs function 2 one year ago
replacer string vs function one year ago
DOM modification getElementById pre-buffered vs direct /w counter one year ago
DOM modification getElementById pre-buffered vs direct one year ago
getElementById pre-buffered vs direct one year ago
getElementById buffered vs unbuffered one year ago
buffered getElementById vs non-buffered one year ago
class vs id test 3 one year ago
class vs id test2 one year ago
class vs id test one year ago
Option chaining and typeof 2 one year ago
Option chaining and typeof one year ago
what's faster one year ago
lodash merge vs object.assign vs spread 22222 one year ago
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...

one year ago
Array loop vs foreach vs map vs while (fixed v2) one year ago
Object.assign vs spread operator vs foreach set 2 one year ago
Object.assign vs spread operator vs foreach set one year ago
Object.assign vs foreach set one year ago
length = 0 vs reassignment one year ago
asdasds

a

one year ago

 New benchmark Your benchmarks