Benchmark name | When Created |
---|---|
constructor vs double negation | 4 years ago |
Lodash deep isEqual test
Test isEqual performance on deep objects |
4 years ago |
Math pow and double asterisk with floats | 4 years ago |
Truncating a number to an integer
~~, bitwise << and Math.trunc. Math.floor will always round down to the nearest integer, which means that for negative numbers it's going to be one less than all the other ones. You shouldn't use the others for rounding down for the same reason - the answer will be wrong for negative numbers. |
4 years ago |
Rounding to precision
Comparing performance of: toFixed(4) vs toPrecision(4).toString() vs (Math.round(*10000)/10000).toString(). Please note that Math.floor, Math.trunc and ~~ can't be used for accurate rounding |
4 years ago |
RequireJS paths processing
Replace path prefixes either by splitting and concatenating path parts or by looking up separators in the path. |
4 years ago |
Array concat vs spread operator vs push vs Array.prototype.push.apply
Compare the new ES6 spread operator with the traditional concat() method and push |
4 years ago |
memoized object assignment (new objects - flat) (moize.simple) | 4 years ago |
reduce tests with spread | 4 years ago |
memoized object assignment (new objects - flat) | 4 years ago |
memoized object assignment (new objects) | 4 years ago |
memoized object assignment
Comparing the performance of memoizeOne to other memoization libraries |
4 years ago |
memoizeOne - complex types - September 2020
Comparing the performance of memoizeOne to other memoization libraries |
4 years ago |
memoizeOne - September 2020
Comparing the performance of memoizeOne to other memoization libraries |
4 years ago |
uniqBy vs stringify performance
lodash vs javascript |
4 years ago |
Adding items to an array
spread vs concat vs unshift vs push There was also push.apply, but the browsers kept running out of memory for those tests. It worked only once. Here's a comparison with just the push results: arrayPush 4763922.0 Ops/sec arrayPush.apply 2666974.0 Ops/sec |
4 years ago |
set.has vs. array.includes vs array.indexOf (numeric values) | 4 years ago |
Test JS endswith implementation2 | 4 years ago |
Test JS endswith implementation | 4 years ago |
Array concat vs spread operator vs push vs Splice
Compare the new ES6 spread operator with the traditional concat() method and push |
4 years ago |
Map vs Object addx
Lookup of map vs object |
4 years ago |
String.prototype.concat vs Array.prototype.join | 4 years ago |
javascript var vs let vs const | 4 years ago |
map object values-u | 4 years ago |
arr.slice() vs spread operator
Compare the new ES6 spread operator with the traditional slice() method |
4 years ago |