Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Object Composition vs Instantiation

No description provided

Array Remove vs String Replace

No description provided

Try-Catch Loop

No description provided

Try-Catch Loop

No description provided

Arrays vs Objects

No description provided

Local scope vs outer scope variables (fixed)

Cache variable in the function scope

Local scope vs outer scope variables

Cache variable in the function scope

Which equals operator (== vs ===) is faster?

Is there a performance benefit to replacing == with ===?

Demo benchmark as guest user

No description provided

regex test

Test

regex test

Test

Dummy Test

No description provided

forEach vs for vs Query each vs for of

with <link>

forEach vs for vs Query each

with <link>

forEach vs for vs Query each

with <link>

forEach vs jQuery each

with <link>

Array filter vs. for loop - with for in 2

This version declares i once before

Array filter vs. for loop - with for in

No description provided

Array filter vs. for loop (fixed really really)

No description provided

EcmaScript6 Int16Array vs regular JS array

No description provided

jQuery by id vs Document.getElementById

Comparing speed of getting element by id with jQuery vs Vanilla JS

Caching length property vs getting it each time in the loop

save length of the array in the variable vs get it the loop

Demo benchmark

From https://benchmarkjs.com/

Test benchmark # 2

New version of MeasureThat.net