Benchmark name When Created
TEST SWAP FUNC 3 years ago
slice vs substr vs substrin

Compares slice, substr and substring to each other when there is only a start index

3 years ago
map vs for loop 1e7 iterations 3 years ago
Array concat vs spread operator vs push (for single item)

Compare the new ES6 spread operator with the traditional concat() method and push for single item

3 years ago
Array<string>.join vs Array<string>.reduce 3 years ago
uderscore.each vs jQuery each 3 years ago
Array concat vs spread operator vs push vs splice vs for-each push vs for-of push

Compare different techniques for combining 2 arrays into either a new array or the source array

3 years ago
object iteration methods kate and waller edition 3 years ago
replace vs substring

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

3 years ago
sanitize-html vs nothing 3 years ago
Empty vs check 3 years ago
Array.prototype.concat vs spread operator111

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

3 years ago
Spread vs if/else vs switch/break 3 years ago
Array.includes vs Set.has v3 3 years ago
Spread vs if/else 3 years ago
Map Find Object 3 years ago
push vs spread operator (test) 3 years ago
Number vs + vs parseFloat vs parseInt 3 years ago
Array.includes vs Set.has v2 3 years ago
Array.includes vs Set.has 3 years ago
Performance Test: slice vs substring vs substr vs subscript 3 years ago
test lodash vs js vanilla 3 years ago
Test split 3 years ago
JS Regex vs .startsWith vs .indexOf with side effects

fork of https://www.measurethat.net/Benchmarks/Show/975/11/regex-vs-indexof-vs-startswith-vs-substr

3 years ago
Lodash vs VanilaJS lkjf 3 years ago

 Create Your benchmarks