Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

string.charCodeAt(index) vs string[index].charCodeAt()

No description provided

replaceAll vs regex replace (no prep code)

No description provided

React useCallback hook vs. function in 18 react

No description provided

Native JS: Array.join strings (prepared) vs template literals vs String.concat

find the best solution for concatenate strings

Object Deep Copy (Testing 4 versions)

Produce a deep copy of a Javascript object where nested objects are not simply references to the originals.

Array.from->map vs Array.prototype.map.call

No description provided

Convert Array to Object - Compare all possible4

No description provided

array using every vs includes vs some

<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>

Which equals operator (== vs === vs Object.is) is faster?

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

Spread Operator vs Deepmerge (v06112022)

Answering https://stackoverflow.com/questions/58702513/lodash-clone-array-vs-spread-operator#

n*n vs n**2 vs Math.pow(n, 2)

No description provided

Underscore vs Lodash isEqual vs JSON.stringify with sorting

Compare Underscore vs Lodash isEqual vs JSON.stringify: Which is faster?

LocalStorage/SessionStorage set and remove

No description provided

Remove bearer prefix from JWT token

No description provided

lodash intersectionWith vs array filtering with includes

No description provided

mergeByKey ES6 vs Lodash vs reduce

No description provided

Array Intersection vs. Set Intersection vs. Lodash - big

No description provided

HtmlSanitizer vs DOMPurifier

No description provided

new function vs eval vs regular functions

No description provided

Copy map vs. object 10000

No description provided

Copy map vs. object

No description provided

JQuery: find vs selector vs scoped selector - More Html

Test which solution find quicker element

JQuery: find vs selector vs scoped selector

Test which solution find quicker element

Split vs replace for url

No description provided

Array.from() vs new Array() performance...

Testing the difference between creating filled arrays.

NEW BENCHMARK Your Benchmarks