Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

array object bench v0.1

testing various way of doing it

Switch vs. If

No description provided

New Variable of Result of Mutating Method vs. Same Variable

Tests how inefficient it is to save the result of a mutating method (that already changes the value passed to it) in a new variable.

Property vs. Variable Access

No description provided

Double tilde vs Math.floor

No description provided

Arrray.reduce + spread vs Array.flat

No description provided

lodash uniq vs set with sort with unsorted array

No description provided

lodash uniq vs set with sort

No description provided

regex .replace() vs literal .replaceAll()

Test simple string replacement when we don't need regex features such as capture groups.

Lodash cloneDeep vs JSON Clone vs Deepcopy

No description provided

Fast Sqrt 2234234

Compare Quakes fast inverse squareroot

Array.reduce vs for loops vs Array.forEach

A test summing 1000 random numbers, 1 - 10000

json.stringify vs lodash.isEquals

No description provided

Double.js benchmark5

Test runner for extended precision libraries (https://github.com/munrocket/double.js)

Reduce vs. ForEach in 2D array

Finding the last non-null index in a 2D array can be done in several ways, two of them are using a ForEach vs. a Reduce method.

delete vs this.$delete

No description provided

Check function. typeof vs constructor + null check II

Difference between typeof(a => {}) === 'function' and (a => {}).constructor === Function

Flatmaps with native

No description provided

JavaScript spread operator vs Object.assign performance no write over more props

No description provided

JavaScript spread operator vs Object.assign performance no write over

No description provided

Remove by splice + findIndex vs filter

Deletion of an element from an array.

testing power

No description provided

spread vs. concat

No description provided

Math.floor vs Math.trunc

No description provided

Create Square 2D Array Extended

Create a 2D "square" array that is filled with arrays of the same length.