Benchmark name | When Created |
---|---|
ArrayBuffer encoding / decoding methods
Array.from() vs TextDecoder() and new Uint8Array() vs TextEncoder() |
one year ago |
new Array() vs Array.from()
Test Array creation methods on a random ArrayBuffer |
one year ago |
new Uint8Array() vs Uint8Array.from()
Test ArrayBuffer creation methods on a random Array |
one year ago |
Assign once vs destructure twice | one year ago |
Array split vs string substring. For all split strings (v1) | one year ago |
Javascript Sort (numbers/strings)
Port from jsperf(https://jsperf.com/sorting-algorithms/58) |
one year ago |
Javascript Sort
Port from jsperf(https://jsperf.com/sorting-algorithms/58) |
one year ago |
object-hash vs JSON.stringify | one year ago |
startWith/includes | one year ago |
Array.includes() vs Set.has() | one year ago |
Array.find vs. Map.get
Test the performance of Array.find vs. Map.get, with various array sizes, and with/without conversion from array to map |
one year ago |
ISO 8601 vs Epoch | one year ago |
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 |