Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Trimming leading/trailing characters (multiple)

No description provided

JSON.stringify vs structuredClone 2dsfasr12qe12321312331312321 2312312

JSON.stringify vs structuredClone 2dsfasr12qe12321312331312321

JSON.stringify vs structuredClone 2dsfasr12qe12321312331312321

JSON.stringify vs structuredClone 2dsfasr12qe12321312331312321

testing string

No description provided

JavaScript .sort() vs .toSorted ()vs [...].sort()

Compare Javascript sort performance

JavaScript reverse vs [,..spread].reverse

Compare Array.reverse() to Array.toReversed() performance wise.

Date methods: toISOString, getDay, constructor

No description provided

Slice vs Splice vs Shift (Large Array 2)

Compares the speed for removing items from the beginning of an array

array join vs toString js vs json

test

RegEx.match vs. startWith2

a

RegEx.match vs. startWith

a

Access to Proxy vs Array

No description provided

Multiple .closest() or complex CSS selector

No description provided

Native JS: concatenate integer with string with + vs template literals vs String.concat

find best solution for concatenate 4 strings

putImageData vs drawImage manual v2

No description provided

putImageData vs drawImage manual

No description provided

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