Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

eval vs Function string interpolation vs

Compares how eval() compares to Function in some form of templating

6 properties - style.setProperty vs style.cssText vs style vs Object.assign vs setAttribute vs assign property

No description provided

Lodash Uniq vs Javascript Set vs Ramda

No description provided

Lodash vs Ramda fromPairs

No description provided

lodash assign vs native

No description provided

Classnames vs CLSX vs light-classnames

In doing my new package light-classnames. I'm trying to see if my package is faster than the other two major competitors/

Filter vs Find vs Some

Bench

flatMap() vs filter().map() - arrays

flatMap vs filter map - always using array as arrow function result

Object.fromEntries vs reduce vs. for-of

Turning an array into an object

Access to Proxy vs Object with getter

No description provided

Array vs object literal

No description provided

createTextNode vs textContent vs innerText vs append vs new Text

No description provided

map vs foreach

No description provided

Destructure from Object.seal vs Object.freeze vs normal(special edition)

No description provided

for-in-hasOwnProperty vs object.keys

No description provided

if else vs switch case vs JSON

Compares if/else, switch/case and a JSON mapping to functions.

String isNullOrWhitespace

Test is fastest way to detect isNullOrWhitespace

Which equals operator (== with type coercion vs ===) is faster?

Is there a performance benefit to replacing == with ===?

Array Pop vs setting array length

Comparing array pop vs setting array length

Find vs Filter

Test Find Vs Filter javascript

RegEx.test vs String.includes vs String.indexOf

Comparing performance of: RegEx.test vs String.includes vs String.indexOf

Typeof GlobalThis Check

Memoizing a key typeof check in high frequency

for vs forEach vs for-of vs for-reverse (short array summing)

for vs forEach vs for-of vs for-reverse

native for vs lodash times vs native while

No description provided

innerText vs innerHtml

No description provided

NEW BENCHMARK Your Benchmarks