Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

jquery bench

No description provided

Math.pow vs x*=x vs x=x*x

No description provided

json stringify vs array map + join

No description provided

Caching Uint8Array length property vs getting it each time in the loop

save length of the u8arr in the variable vs get it the loop

JSON Stringify Speed Test

This benchmark tests whether the speed or JSON.stringify changes with object size

Lodash cloneDeep vs JSON Clone vs Ramda Clone vs Pvorb Clone888

No description provided

Array.indexOf vs Array.includes

No description provided

for-in vs object.keys (forEach) vs object.keys (for)

No description provided

OrderBy

No description provided

Math.max/min vs function ternary vs inline ternary

No description provided

new Date()

Measure how fast is the date parsing using new Date()

querySelectorAll vs getElementsByClassName with 1,000,000 children searched

No description provided

TEST SWAP FUNC

No description provided

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