Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

slice vs substr vs substrin

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

map vs for loop 1e7 iterations

No description provided

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

Array<string>.join vs Array<string>.reduce

No description provided

uderscore.each vs jQuery each

No description provided

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

object iteration methods kate and waller edition

No description provided

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

sanitize-html vs nothing

No description provided

Empty vs check

No description provided

Array.prototype.concat vs spread operator111

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

Spread vs if/else vs switch/break

No description provided

Array.includes vs Set.has v3

No description provided

Spread vs if/else

No description provided

Map Find Object

No description provided

push vs spread operator (test)

No description provided

Number vs + vs parseFloat vs parseInt

No description provided

Array.includes vs Set.has v2

No description provided

Array.includes vs Set.has

No description provided

Performance Test: slice vs substring vs substr vs subscript

No description provided

test lodash vs js vanilla

No description provided

Test split

No description provided

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

Lodash vs VanilaJS lkjf

No description provided

indexOf v Split

No description provided