Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

JS Split VS RegExp

No description provided

.startsWith() vs. RegExp for short strings and short prefixes

No description provided

CSS: .setProperty vs. Object.assign vs. .style vs. cssText-append

Tests whether manipulating an HTML element's inline styles is fastest via .setProperty(), Object.assign, .style or by appending to the cssText.

js native lowercase vs native uppercase

No description provided

Fastest way to detect an empty string - better test cases

testing removing beginning and end whitespace vs trim

Perfomance: Switch (with functions) vs Polymorphism (with methods)

https://stackoverflow.com/questions/50401725/perfomance-switch-vs-polymorphism

getAttribute & setAttribute vs dataset

Compare setAttribute & getAttribute to dataset

RegEx.test vs. String.includes (end of string matching)

No description provided

for...of (no break) vs find()

Testing the difference between native loops and find()

Ramda vs json stringify (no util)

No description provided

Array.every => Array.includes vs Array.every => Set.has

No description provided

Array.every => Array.includes vs Array.every => Set.has with new Set() creation

No description provided

Array.every => Array.includes vs Array.every => Set.has with set creation

No description provided

Date vs Dayjs (not casting to date)

No description provided

IndexOf comparison vs Includes in string

Banana

test2354

No description provided

lodash each vs native

No description provided

custom WeakMap vs Symbol Property

No description provided

[JS] nested if

No description provided

Array creation vs empty values

No description provided

classList.contains vs. hasAttribute v2

No description provided

math pow 5 vs multiply

No description provided

iterative vs recursion

No description provided

PutImageData vs DrawImage vs fillRect v213

GetImageData with PutImageData vs just DrawImage

regex vs parseInt string test

No description provided