Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

math.abs vs branchless absolute val 2

No description provided

cloneDeep vs structuredClone

No description provided

array math.max vs for loop

compare finding the maximum value with math.max using .apply & using the spread (...) operator, vs a basic for loop with an if statement, & finally a basic foor loop using length caching

math pow vs bit shifting vs exponentiation operator

No description provided

Lodash cloneDeep vs structuredClone deep array

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

RegExp: negative vs lazy (non-greedy)

No description provided

parseInt vs Number vs Number/Number.isInteger

No description provided

htmlparser2@6.1.0 vs DOMParser

No description provided

public vs closure vs private

No description provided

_isEqual vs. .every()

No description provided

Replace string methods, .replace(), replaceAll(), and split+join +

No description provided

dataset vs getAttribute() vs jQuery.data() vs jQuery.attr()

No description provided

OffsetScreenCanvas.measureText VS. Canvas.measureText

No description provided

window.getComputedStyle vs. getBoundingClientRect vs clientHeight

No description provided

JavaScript spread operator vs Object.assign performance ( nested objects ) into empty object

No description provided

lodash vs ES6 sortby native fix

No description provided

Lodash cloneDeep vs structuredClone vs Klona 3

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

getBoundingClientRect vs offset when taking into account CSS transformation

No description provided

Object iterating

No description provided

.endsWith vs includes longer

No description provided

number vs bigint add

No description provided

add vs multiply (working)

No description provided

JSON.Stringify / JSON.Parse vs TextEncoder / TextDecoder

No description provided

test vs match v2

No description provided

endswith vs indexof

No description provided

NEW BENCHMARK Your Benchmarks