Benchmark name | When Created |
---|---|
querySelectorAll vs getElementsByTagName 2 | 3 years ago |
.sort() vs Math.min - 4 elements
.sort() vs Math.min |
3 years ago |
Array.sort() vs Math.min / Math.max 4 elements v2
Array.sort() vs Math.min / Math.max - array with 4 elements |
3 years ago |
Array.sort() vs Math.min 4 elements
Array.sort() vs Math.min 4 elements |
3 years ago |
Array.sort() vs Math.min / Math.max 4 elements
Array.sort() vs Math.min / Math.max - array with 4 elements |
3 years ago |
Array.prototype.slice vs spread operator vs copy
Compare the new ES6 spread operator with the traditional slice() method |
3 years ago |
for-in vs object.keys (no console) (forked)
same as the other one but with assigning to other object instead of console.logging |
3 years ago |
for-in vs object.keys (no console)
same as the other one but with assigning to other object instead of console.logging |
3 years ago |
Object assign vs direct assignment by iterating keys and assigning
Should you be saving your fields to an object with Object.keys(toSave).forEach(k => ... or by Object.assign(destination, toSave); |
3 years ago |
null vs. hasOwnProperty
Object lookup performance |
3 years ago |
JSON.stringify- | 3 years ago |
JSON.stringify-- | 3 years ago |
Array.prototype.slice vs spread operator copy performance
Compare the new ES6 spread operator with the traditional slice() method |
3 years ago |
lodash.forOwn vs for..in | 3 years ago |
Object.assign size for direction | 3 years ago |
forEach vs reduce vs map vs filter vs for vs while 10 runs | 3 years ago |
forEach vs reduce vs map vs filter vs for vs while | 3 years ago |
For vs Min1 | 3 years ago |
For vs Min | 3 years ago |
Unique Array: Lodash or spread new Set | 3 years ago |
slice vs splice vs shift vs delete
which is faster |
3 years ago |
Join vs JSON.Stringify | 3 years ago |
Array.find vs. Set.has
Compares a performance of Array.find on a small number of items |
3 years ago |
Lodash difference vs Set & Filter2 | 3 years ago |
Native Event listener vs custom EventTarget vs fake listeners array | 3 years ago |