Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

RegEx.test vs. String.includes case insensitive

No description provided

for vs forEach vs for-of vs for-reverse vs reduce (calculate sum)

for vs forEach vs for-of vs for-reverse vs reduce (calculate sum)

hash-sum vs object-hash vs JSON (with array)

No description provided

hash-sum vs object-hash vs JSON

No description provided

innerHTML vs innerText vs textContent

blah blah

Testing for false vs undefined vs == null vs hasOwnProperty vs hasOwn for undefined member

Is there a performance benefit to replacing == null with a logical test?

innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement add attribute x100 fix

innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement add attribute

Classnames vs CLSX vs [].filter(Boolean).join(" ")

Compare CLSX vs Classnames vs an simpliest implementation of creating a template string

innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement

innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement

Slice + reverse vs manual picking array indexes

No description provided

qasdfasdf

No description provided

getElementsByTagName vs querySelectorAll

No description provided

Object.values vs array index loop

No description provided

try-catch with artificial error vs try-catch with no error

No description provided

lodash mapValues

No description provided

lodash groupBy vs Array.reduce [correct] 100k

No description provided

array.IndexOf vs new Set.has

array.indexOf vs new Set.has

bignumber.js vs. big.js vs. decimal.js (I) no native

- 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

XHR vs fetch vs axios to tronscan

No description provided

Vanilla JS vs jQuery Selectors - v2

Vanilla JS ID Selector vs Vanilla JS Class Selector vs Vanilla JS Query Selector All vs Vanilla JS Query Selector vs Vanilla JS Data Hook vs jQuery ID Selector vs jQuery Class Selector vs jQuery Data Hook Selector

Vanilla JS vs jQuery Selectors

Vanilla JS ID Selector vs Vanilla JS Class Selector vs Vanilla JS Data Hook vs jQuery ID Selector vs jQuery Class Selector vs jQuery Data Hook Selector

is find faster than forEach?

No description provided

innerHTML vs element.firstChild.remove()

No description provided

lodash pull vs native splice

No description provided

closest vs querySelector

Goal: Get the target element inside the DOM Test case #1 - You don't have the target id - Find a target element through DOM via Element.closest() Test case #2 - You have the target id from your state - Find the target element via Document.querySelector()

NEW BENCHMARK Your Benchmarks