Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

traverse Array vs Set

array与set遍历性能对比

Object for...in vs for...index 2【no hasOwn】

No description provided

cloneNodes vs createElements

No description provided

array arg vs spread args

No description provided

String split('.')[0] + 'Z' vs slice(0,19) + 'Z' for ISO date

Comparing split vs slice for stripping milliseconds from toISOString() output. Common pattern in date formatting utilities.

Array initialization: preallocate vs push with objects (500k)

No description provided

Array initialization: preallocate vs push with objects (1e6)

No description provided

Array initialization: preallocate vs push with objects (200k)

No description provided

SoA vs AoS vs Packed Typed Array

No description provided

instanceof vs nodetype

No description provided

TreeWalker vs querySelectorAll (* all elements) vs function

No description provided

luxon vs datefns vs moment vs day.js test

No description provided

luxon vs datefns vs moment vs day.js 123

No description provided

bit flags: number vs bigint

just comparing existence. probably could do more but just want to test single op

slice() vs slice(0)

No description provided

Object vs Map - creation with dynamic keys

Explores performance of different ways to build a data structure with a dynamic set of keys that we know up front.

JQuery4 new div element with class - 1k reps [b]

Faster way to create new dom elements before insertion with JQuery (+ set class)

JQuery4 new div element with class - 1k reps

Faster way to create new dom elements before insertion with JQuery (+ set class)

JavaScript Array: Every-not vs not-Some

Compare the performance of using the Every and Some method in an Array

Const vs multiplechecks

No description provided

Object vs Set

Comparing using an object or Set for tracking unique values.

Cost of destructuring polyfill

http://shortn/_phn0vruuxP

className vs. classList - changing

Fork from https://measurethat.net/Benchmarks/Show/54/0/classname-vs-setattribute-vs-classlist

set.has vs. array.includes vs array.indexOf (string values) 2

No description provided

jquery 1.12.4 vs 2.2.4 vs 3.7.1 vs 4.0.0

No description provided