Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Unsorted TC-DOHSIM for..of vs reduce

Testing DOHSIM shuffled performance of find vs for

Shuffled TC-DOHSIM find vs for...of

Testing DOHSIM shuffled performance of find vs for

TC-DOHSIM find vs for...of

Testing DOHSIM performance of find vs for

Classnames vs CLSX @ 2023-02-15

No description provided

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.

ParentNode Test

No description provided

lodash@4.17.15 uniq vs new Set() (w/ datetime strings)

Comparing uniq vs new Set using a mid-sized array (length: 239) of datetime strings.

Template, InnerHTML, concat

No description provided

Spread&reduce vs flatMap vs reduce

No description provided

check getting length of array

No description provided

String extracting

No description provided

SpredOrSlice

faster

RegEx.test vs. String.includes vs. String.match vs String.match(regex)

No description provided

Object key access vs array find - #2

Test speed of object access by key vs array find to find object

multiple shift vs splice

-

deep clone - lodash vs ramda vs json (deep)

No description provided

deep clone (bigger obj2)

No description provided

build an array from an array vs from an obj - corrected

No description provided

optionally chain me up on valentimes day - no safeword 2

No description provided

optionally chain me up on valentimes day x2

No description provided

optionally chain me up on valentimes day - no safeword

No description provided

optionally chain me up on valentimes day

No description provided

fddfdfdfdf

No description provided

Object.defineProperty vs Object.defineProperties

No description provided

!! vs. hasOwn vs. in with null obj

Object lookup performance