Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

clearing array via pop() vs shift() vs .length = 0 vs = [] 1

No description provided

Array loop vs foreach vs map vs while vs some vs every vs filter vs find

No description provided

charCodeAt vs codePointAt actually using unicode chars

No description provided

localeCompare vs charCodeAt

localeCompare vs charCodeAt

Lodash isEqual vs Every Undefined test

Test on isEqual performance

lodash head vs 0

No description provided

Convert Array to Object 2 - Object.fromEntries vs reduce

No description provided

Convert Array to Object - Object.fromEntries vs reduce

No description provided

filter-map vs reduce 2

modified version of `map-filter vs reduce` that switches the order of operations

querySelector vs getElementsByClassName with proper utilization

No description provided

Switch vs Object Literal vs If Else vs Map - testing with simpler data again again

No description provided

slice vs substring (with no end index)

Compares slice, substr and substring to each other when there is only a start index

createElement vs cloneNode (not deep) vs innerHTML

Faster way to create new dom elements before insertion

cached Intl.NumberFormat vs new Intl.NumberFormat vs Number toLocaleString currency

No description provided

cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString currency

No description provided

sort destruct vs sort

No description provided

Direct call vs bind vs call vs apply (with precreated arg variables)

No description provided

lodash.head() vs [0] updated with optional chaining

Is head() needed only to check length !== 0 ? P.s. Empty testcase for [0] is useless because it won't crash on trying to get nonexistent element

slice vs capturing group

No description provided

lodash uniqWith vs filter

No description provided

Object Literal vs If Else vs Switch Case

Benchmark of Object Literal vs If Else vs Switch Case

Math.pow() vs exponentiation operator

No description provided

moment vs date-fns date math

Which date library can add and subtract days the fastest?

jQuery versions

benchmark different versions of jquery

flatMap vs reduce (concat) vs reduce (push)

No description provided

NEW BENCHMARK Your Benchmarks