Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

for vs foreach vs some

Compare loop performance

decoding with JSON.decode and atob

No description provided

decoding with JSON.decode and atob

No description provided

Var vs Let

Just a simple test with var/let performance in for loop

Data Properties vs. Accessor Properties vs. Getter / Setter Methods

The purpose of this benchmark is to determine the performance differences between data properties, accessor properties and getters / setter functions.

soa vs aos

As titled

soa vs aos

As titled

soa vs aos

As titled

soa vs aos

As titled

soa vs aos

As titled

soa vs aos

As titled

soa vs aos

As titled

Multiplying lists of vectors - SoA vs AoS vs interlaced array

What's the fastest way to process a list of vectors? Do you go the OO route, with an array of Vector() objects? Do you create a new data structure, using Float32Arrays for x, y, and z? Do you create a single Float32Array and interlace values for x, y, and z within it? Let's find out!

Query Selector v Sizzle

No description provided

bitwise operator vs. boolean logic when using TypedArrays

Bitwise operators are slow in javascript because there is implicit type conversion between floats and ints. If we use TypedArrays though, javascript engines shouldn't have to convert. But do they? This test is here to find out. We'll also check to see whether conversion is performed between another int-like datatypes, Uint32

array.splice vs for loop

No description provided

array.splice vs for loop

No description provided

arguments vs array

No description provided

for (key in obj) vs Object.keys(object)

No description provided

DocumentFragment: various jQuery vs JavaScript

Test various styles of retrieving the content of a <template> element using jQuery and pure JavaScript

leftpad

blah

Map vs Object

No description provided

Arguments as array: spread vs apply

No description provided

New vs literal

No description provided

String Concatenation

No description provided

NEW BENCHMARK Your Benchmarks