Benchmark name | When Created |
---|---|
ISO 8601 | one year ago |
test map vs reduce | one year ago |
Array .push() vs .unshift() | | one year ago |
array iteration speed v2
Compare loop performance |
one year ago |
Unsorted TC-DOHSIM for..of vs reduce
Testing DOHSIM shuffled performance of find vs for |
one year ago |
Shuffled TC-DOHSIM find vs for...of
Testing DOHSIM shuffled performance of find vs for |
one year ago |
TC-DOHSIM find vs for...of
Testing DOHSIM performance of find vs for |
one year ago |
Classnames vs CLSX @ 2023-02-15 | one year ago |
Decimal Rounding - Exponential notation vs Number.EPSILON vs Double rounding vs Double rounding v2
A benchmark for solutions that provide accurate decimal rounding, flooring, and ceiling to a specific number of decimal places. These solutions treat floats more like decimals by fixing the binary rounding issues to avoid unexpected results. Solution 1: converting the number to a string in the exponential notation (e.g., num + "e" + decimalPlaces). Solution 2: purely mathematical (Number.EPSILON) Solution 3: double rounding. This solution uses the Number.prototype.toPrecision() method to strip the floating-point round-off errors. Solution 4: double rounding v2. This solution is just like Solution 3, however it uses a custom toPrecision() function. |
one year ago |
ParentNode Test | one year ago |
[email protected] uniq vs new Set() (w/ datetime strings)
Comparing uniq vs new Set using a mid-sized array (length: 239) of datetime strings. |
one year ago |
Template, InnerHTML, concat | one year ago |
Spread&reduce vs flatMap vs reduce | one year ago |
Spread vs flatMap vs reduce | one year ago |
check getting length of array | one year ago |
String extracting | one year ago |
SpredOrSlice
faster |
one year ago |
RegEx.test vs. String.includes vs. String.match vs String.match(regex) | one year ago |
Object key access vs array find - #2
Test speed of object access by key vs array find to find object |
one year ago |
multiple shift vs splice
- |
one year ago |
deep clone - lodash vs ramda vs json (deep) | one year ago |
deep clone (bigger obj2) | one year ago |
build an array from an array vs from an obj - corrected | one year ago |
build an array from an array vs from an obj | one year ago |
optionally chain me up on valentimes day - no safeword 2 | one year ago |