Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Date.now JS tests

No description provided

for vs foreach vs for..of (z2)

Compare loop performance

for vs foreach vs for..of (z)

Compare loop performance

Array loop vs foreach

No description provided

Lodash isEqual test -talves

Test on isEqual performance

Try/catch performance (JSON parse)--

No description provided

Repeated use of includes vs match

Amortize the cost of creating a regex across 20,000 applications. Scan a long string. On chrome you only see a difference once the target string is over 15 chars or so. String.includes is best, followed by RegExp.test, then String.match.

WeakMap vs "Symbol with WeakMap fallback" v2

No description provided

% vs Math.Random()

Cost of measuring "every hundredth instance" vs. a random sampling of 1% of instances

Array includes vs string indexOf

No description provided

Create DOM nodes v2

No description provided

Test new sasdasd

No description provided

Literal regexp's vs string and array methods

Literal regexp's vs string and array methods when searching a number in a string

Test Sorting Locations etc etc etc etc

No description provided

Test Sorting Locations etc etc etc

No description provided

array find() vs js object

No description provided

Multiplication vs Additions

No description provided

flatMap vs for in vs forEach

Comparing performance of: flatMap vs for of

Function declaration vs Function expression in React v2

No description provided

Function declaration vs Function expression in React

No description provided

For in vs Object.*.forEach vs Object.values for loop cached

No description provided

Object Clone Lodash vs structuredClone

Compare performence for cloning an object in JS between lodash.clone and structuredClone

sma - doc or new

No description provided

sma - reduce - doc - new

No description provided

Array split, slice & join vs string substrings

This benchmarks test a scenario of splitting the first part of a dot "." separated string like domain names. For example: aaa.mysite.domain.com