Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Javascript 'concat()' vs '+' for strings

Testing the performance difference between concat() and the + operator for strings in javascript

To cache or not to cache

No description provided

AND logical vs ternary and IF

In trying to avoid division by 0, a common alternative is to check if the divisor is 0 and if so then the result becomes 0 (with error logging taking place elsewhere).

AND logical vs ternary and IF

In trying to avoid division by 0, a common alternative is to check if the divisor is 0 and if so then the result becomes 0 (with error logging taking place elsewhere).

AND logical vs ternary and IF

In trying to avoid division by 0, a common alternative is to check if the divisor is 0 and if so then the result becomes 0 (with error logging taking place elsewhere).

DOM Selection

Global Dom Selection

Explicit call vs apply

See if there is a real benefit to handle small arity function calls with explicit calls or if apply is sufficient.

Explicit call vs apply

No description provided

Explicit call vs apply

No description provided

Push vs Concat

Has Array.prototype.push more perf than Array.prototype.concat?

testasdfs

test

testasdfs

test

array of object search

No description provided

Every Third Element

No description provided

Every Third Element

No description provided

Every Third Element

No description provided

Looping through massive array

Based on https://blogs.oracle.com/greimer/entry/best_way_to_code_a

Looping through array

Based on https://blogs.oracle.com/greimer/entry/best_way_to_code_a

single-quote-vs-double-quote-vs-backtick

No description provided

string-interpolation-vs-concatenation

No description provided

parseInt vs. substring

No description provided

spreadArray

Function that works like a join, but returns array

lsakdjflkajsdf

bla

spreadArray

Function that works like a join, but returns array

Shift loop vs unrolled

No description provided