Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Spread vs JSON.parse(JSON.stringify()) 2

Benchmarks spread vs JSON.parse(JSON.stringify())

slice vs substring (removing rightmost char)

Compares slice and substring to each other when removing the rightmost character

Should you cache Intl.DateTimeFormat?

Testing creating a new Intl.DateTimeFormat each time vs. caching it using JSON-stringified options object as the key.

Object.values vs cached array

Compare fetching values by calling Object.values on the fly vs a cached array

Trig functions plusplus

Which of the built-in trig functions are fastest? slowest?

React useCallback with complex function, setState, hook vs. function vs. external

No description provided

React useCallback setState hook vs. function vs. external

No description provided

React useCallback hook vs. function vs. external

No description provided

DataAttribute vs Class Selector vs ID Selector vs getElementById vs getElementsByClassName with other elements

No description provided

DataAttribute vs Class Selector vs ID Selector vs getElementById vs getElementsByClassName

No description provided

set.has vs. array.includes vs in operator (with strings)

No description provided

set.has vs. array.includes vs in operator

No description provided

Remove array items: FindIndex + Splice vs Filter

Compare array item removal methods.

shift vs index

No description provided

padStart vs slice 4

Measures speed between using padStart and slice

mybenchmark1233131311231

No description provided

mybenchmark1233131311

No description provided

mybenchmark123313131

No description provided

benchmarkname-1123

No description provided

Intl.DateTimeFormat formatToParts vs. format then regex

No description provided

.at vs length -1

No description provided

Lodash.filter vs Lodash.without vs array.filter

No description provided

Lodash.filter vs Lodash.without

No description provided

remove vs display:none on each element2

No description provided

bignumber.js vs. big.js vs. decimal.js vs. js-big-decimal

- https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0