Benchmark name | When Created |
---|---|
flatten merge array: reduce VS Object.assign | one year ago |
Array.Prototype.at vs index
Measures performance between using arr.at(1) to access an element in an array and arr[1] |
one year ago |
test for loop - 123122 | one year ago |
operator `in` vs. get property by key | one year ago |
Array last index | one year ago |
includes vs key3
Prüft was schneller ist |
one year ago |
includes vs key2
Prüft was schneller ist |
one year ago |
includes vs key
Prüft was schneller ist |
one year ago |
lodash uniq vs set with strings | one year ago |
Number vs Unary vs parseFloat vs parseInt | one year ago |
Object assign vs direct assignment by iterating keys without Object.keys
Should you be saving your fields to an object with Object.keys(toSave).forEach(k => ...) or by for(var i in object) { toSave[i] } or by Object.assign(destination, toSave); |
one year ago |
Regex vs String comparison | one year ago |
Math.min vs if/else vs ternary operator test 3
Quickest operation to return smaller of 2 numbers |
one year ago |
Math.min vs if/else vs ternary operator test 2
Quickest operation to return smaller of 2 numbers |
one year ago |
Array() vs Array.from() fill
Testing the difference between creating filled arrays. |
one year ago |
Array() vs new Array() fill
Testing the difference between creating filled arrays. |
one year ago |
isNumber vs unary cast | one year ago |
Cached querySelector single
Testing if caching querySelector makes a diference |
one year ago |
JS loops comparison | one year ago |
value comparison vs. JSON.stringify | one year ago |
ES6 Class vs Prototype vs Object Literal v3
Test the speed and memory usage using 3 different techniques for constructing class objects. |
one year ago |
Array 2000 spread vs concat | one year ago |
RegEx.test vs. String.includes vs. String.match vs String.replace vs String.replace classic | one year ago |
RegEx.test vs. String.includes vs. String.match vs String.replace | one year ago |
Compare typeof vs null check 2 | one year ago |