Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

flat vs flatMap vs reduce vs reduce push vs forEach push vs concat spread

No description provided

Side effect: for i vs for of vs foreach

No description provided

const vs let vs var vs sloppy

No description provided

adsd dasd afsd

No description provided

Math.random() performance

No description provided

Math.random vs crypto.getRandomValues 32 bytes

Fast and quick test

className vs classList with =

No description provided

Is odd (large float)

No description provided

Is odd (large)

No description provided

TestJSONParse

No description provided

for vs funcs2

No description provided

string to array

No description provided

while vs padend

No description provided

trunc vs floor

No description provided

fillRect vs rect

No description provided

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

No description provided

Array .indexOf vs .some vs .includes

performance comparison of ways to find if an array contains a value

Set vs Filter for finding duplicates in array of objects

Set vs Filter for finding duplicates in array of objects

unshift vs concat vs spread of new array

No description provided

.startsWith vs .indexOf vs index

fork of https://www.measurethat.net/Benchmarks/Show/975/11/regex-vs-indexof-vs-startswith-vs-substr

Creating multiple elements with differences in content

For similar but not identical elements, is there any significant gain from cloning a base element or not? Micro benchmarking, for when many thousands are created at once.

Lodash some vs isEmpty 2

No description provided

test before assign or assign by default

No description provided

string-interpolation-vs-to-string

No description provided

splice copy vs replace

splice copy vs replace