Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

normal function find vs arrow function find

Compare the new ES6 spread operator with the traditional concat() method

test444

test

Object spread vs Object assign

spread vs assign

Which falsy expression (! vs === 0) is faster?

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

Spread operator vs. slice small real

Creating a "new" array reference every time

Spread operator vs. slice small

Creating a "new" array reference every time

array from vs spread

No description provided

javiselectoptions

selectoptions

selectoptions

selectoptions

Array.prototype.concat vs spread operatordsvsdxvseafawfawfawf

Compare the new ES6 spread operator with the traditional concat() method

Array.prototype.concat vs spread operatordsvsdxvse

Compare the new ES6 spread operator with the traditional concat() method

Array for vs. some

No description provided

Array includes 20190424

No description provided

string concat (+) vs template literals (``) (10 vars)

string concat vs template literals (10 vars)

replace vs substring vs slice from beginning (+ brackets, substr, compiled vs inline regex)

Test the performance of replace() vs substring() vs slice() when replacing a char at the beginning of a (in this case uri query-)string that may or may not be there. Added the combined brackets[ ] + substr() method, since it's always the first char we wan't to pop off. Inspired by https://jsperf.com/replace-or-substr. Note: could not get 'let' and 'const' to work. Well, too bad...

Lodash vs Ramda vs Underscore 1.5.2

No description provided

jQuery removeClass vs classList.remove

No description provided

Array concat vs spread operator vs push for single element

Compare the new ES6 spread operator with the traditional concat() method and push

Array.prototype.concat vs spread operator vs flat

Compare the new ES6 spread operator with the traditional concat() method

filter vs compact vs flat

No description provided

Array.prototype.concat vs spread operator (no jQuery merge)

Compare the new ES6 spread operator with the traditional concat() method

for vs for..in

No description provided

hb-2365-test (tes1t)

No description provided

hb-2365-test

No description provided

DOM api vs innerHTML

No description provided