Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

isArray vs nullish coalesce + length check

Array.isArray vs array.length > 0

document getElementsByTagName vs querySelectorAll

No description provided

jquery $(querySelectorAll) vs $(".class")

No description provided

includes vs. word starts with

Searching for a substring: check whether it appears anywhere in a source string, or whether it appears at the start of a word within the source string

Canvas context2d: Image vs ImageBitmap vs Canvas (with clear canvas and alpha true)

No description provided

Canvas context2d: Image vs ImageBitmap vs Canvas (with clear canvas)

No description provided

Canvas context2d: Image vs ImageBitmap vs Canvas (new new)

No description provided

Canvas context2d: Image vs ImageBitmap vs Canvas (new)

No description provided

ttessttt

No description provided

Canvas context2d: Image vs ImageBitmap vs Canvas

No description provided

Array vs TypedArray vs f32 write performance

No description provided

Switch vs map first value

No description provided

Bench fast-json-patch vs jsondiffpatch vs rfc6902

No description provided

for-in vs object.keys for checking empty

No description provided

lodash uniq vs set (fork 12)

No description provided

flatMap() vs filter().map() vs reduce() push vs reduce() spread

flatMap vs filter map vs reduce()

String replace using regex vs string (2)

No description provided

Array item swapping, destructuring vs temp variable (throwaway destructuring)

Array destructuring vs temp variable use in array item swapping

axios vs node-fetch json data

No description provided

Lodash Difference vs. Filter

No description provided

replace with global regexp vs replaceAll vs split-join v2

No description provided

checked

No description provided

replace with global regexp vs replaceAll vs split-join

No description provided

Float32 vs Float64 vs Array only iterate1e4

No description provided

Float32 vs Float64 vs Array only iterate1e5

No description provided