Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

setAttribute/removeAttribute vs. classList.add/remove

No description provided

isArray

Array.isArray vs Object.prototype.toString vs [].constructor vs instanceof

addClass/removeClass vs classList.add/remove

jQuery addClass/removeClass vs classList.add/remove

jQuery 3.3.1 selector vs jQuery 2.1.4 vs document.querySelector vs document.getElementById

Comparing speed of jQuery 3.3.1 selector, jQuery 2.1.4, vanilla JS querySelector, and vanilla JS getElementById

floatThead v2.1.2 vs floatThead 1.2.12

floatThead performance

jQuery 3.3.1 selector vs document.querySelector

Comparing speed of jQuery 3.3.1 selector and vanilla JS querySelector

jQuery 2.1.4 selector vs document.querySelector

Comparing speed of jQuery 2.1.4 selector and vanilla JS querySelector

Encode html without creating html elements

There are two way of encoding html elements. One is the create an html element and let the browser handle it. The second looks at every character passed in and then runs a regex match on it and replaces the chars with &#CHAR_CODE;.

filter: ramda vs native

No description provided

Regex vs .indexOf vs .startsWith vs .substr

Testing some things

Spread operator vs. Array.map and lodash.set

A comparison of the performance of the spread operator, [ ...array ], vs. Array.map(i => ...) and

Array.prototype.concat vs splice 1

No description provided

Optional Chaining versus _.get lodash

No description provided

Optional Chaining versus _.get lodash

No description provided

Optional Chaining versus _.get lodash

No description provided

eval vs new Function

No description provided

Counting words space - match vs split

No description provided

eval vs json parse

No description provided

fizzBuzzTes

No description provided

provaffdfd

No description provided

testsemeke

No description provided

Canvas gradient perf

No description provided

Canvas gradient perf

No description provided

Canvas gradient perf

No description provided

Canvas gradient perf

No description provided