Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array Initialization Types

No description provided

jquery multi-selector vs several selectors

No description provided

dash vs camel case

No description provided

createElement vs cloneNode

Faster way to create new complex dom elements

createElement vs cloneNode

Faster way to create new dom elements before insertion

Reselect defaultMemoize

No description provided

Loop vs Recursion for Array

No description provided

img src slowness

Creating image tags with/without an src attribute with a data URI.

Copy Array

Speed of array cloning

Palindrome checker

No description provided

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

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

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).

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.

Push vs Concat

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

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

No description provided

string-interpolation-vs-concatenation

No description provided

Shift loop vs unrolled

No description provided

ampersands vs ternaries

No description provided

Set vs Object

No description provided

forEach vs regex in vowel counting

No description provided

Array.sort vs Math.min+Math.max

No description provided

console.log

No description provided

Get element by class

No description provided

While vs For loop

No description provided

jQuery vs pure JS : html

innerHTML vs html

NEW BENCHMARK Your Benchmarks