Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

JavaScript string split vs match using regex

No description provided

Add new element to array: push vs destructuring, with longer array

No description provided

test array vs map lookup 3

asd

className vs classList for a new element

No description provided

test array vs map lookup 2

asd

test array vs map lookup

No description provided

Array.find vs. Map.getdfsxcz

Test the performance of Array.find vs. Map.get, with various array sizes, and with/without conversion from array to map

Array.find vs. Map.getss

Test the performance of Array.find vs. Map.get, with various array sizes, and with/without conversion from array to map

from vs stat1

Testing the difference between creating filled arrays.

from vs stat

Testing the difference between creating filled arrays.

Custom Benchmark 777

No description provided

find vs some for objects

test performance of find versus some

Lodash.js vs Native3

No description provided

Lodash.js vs Native1

No description provided

toFixed vs toPrecision vs Math.round() vs bitwise, also trunc, floor

Compares built in and bitwise operators. Specifically, toFixed(), toPrecision(), and Math.round(), and then bit shifting >> 0. In some cases, to places, so *100 and /100. Also tested floor() and trunc() versus the bit mask of |0 (bitwise or). The bitwise tests that are "signed" have the needed ternary statement, whereas the "UNsigned" versions do not.

replaceAll vs replace 2

includes vs regexp

Fast deep equal vs strigify

No description provided

Filter vs. set

No description provided

pop() vs array.length -= 1

No description provided

id vs getAttribute vs map

No description provided

str.match vs str.Split and for each (regex g flag)

No description provided

str.match vs str.Split and for each 2

No description provided

str.match vs str.Split and for each

Test String.match with regex against String.split with string. We are splitting a string at the spaces.

Set vs strict equality

No description provided

arr.find vs arr[arr.findIndex] (Array prototype methods)

Measuring which is faster