Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

json stringify vs String()

No description provided

8FAD4EC8-45FE-4D39-A75A-9CC42D9F63D4

No description provided

charAt vs codePointAt actually using unicode chars

No description provided

Array insert

No description provided

indexOf VS if

No description provided

nextSibling function vs TreeWalker

Let's compare the speed of 3 different ways to traverse the DOM.

121312312312

No description provided

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)

NEW BENCHMARK Your Benchmarks