Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Object vs Dictionary

No description provided

replace, replaceAll, string, RE/g, includes

2 cases 1. Single match of pattern 2. Many matches of pattern

getMiddle: Math.floor vs num % 2

Math.floor(num / 2) vs (num % 2 ? (num - 1) / 2 : num / 2)

Array.prototype.concat vs spread operator vs push test

No description provided

Array flat

No description provided

String reveese

No description provided

Some Date getters/setters

No description provided

document.createElement : direct assign vs Object.assign vs setAttribute

No description provided

Lodash.isFinite vs Object.isFinite

Measuring approaches performance

new Image vs document.createElement(img)

No description provided

Array(n) vs Object.assign([], {length: n}) 2

No description provided

Array(n) vs Object.assign([], {length: n})

No description provided

Fork of createElement vs insertAdjacentHTML but actually works V2 with spreading into an array

No description provided

for-in vs object.keys (many keys)

No description provided

Append children VS appendChild in loop VS replaceChildren moar

No description provided

math.abs vs Number

No description provided

Compare performance between Dayjs.tz and Temporal.ZonedDateTime

Get the end of month of an arbitrary month with both.

Benchmark: chunk array by slice VS splice

chunk 100k element array into 1k elements chunks

Date vs Performance.now

No description provided

.includes() vs .test() vs .match() vs .indexOf() mode

Compare different intra-string matching styles

NextTick Implementation in GameLoop

No description provided

NextTick Implementation

No description provided

Methods for creating many items (sized up)

Compare creating from a huge string against creating many copies.

Methods for creating many items

Compare creating from a huge string against creating many copies.

private/public class proprty access

No description provided