Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

DataAttribute vs Class Selector vs ID Selector vs Tag vs :is() with many tags

No description provided

Create text node v2

No description provided

Create text node

No description provided

stage1 collect varients v2

No description provided

stage1 collect varients

No description provided

comparing array creation

No description provided

chain of or equals vs includes (2 object items)

how much of a performance deficit you can expect from using Array.includes instead of manually writing a chain of logical ORs

Spread with map vs Array.from()

No description provided

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

NEW BENCHMARK Your Benchmarks