Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Regex /i vs .includes with tolowerCase

Testing some things

multiplication vs exponentiation

is it more performant to multiply a number by itself manually or use the exponentiation operator '**2'?

Map.get vs Object property access

No description provided

Map.set vs Object assign

No description provided

Template Literals vs String Concatenation vs Replace

No description provided

Object.fromEntries vs reduce vs assign

No description provided

Compare method createElement vs string template using insertAdjacentHtml

Compare method createElement vs string template using insertAdjacentHtml

Map vs Object new

my own

innerHTML vs insertAdjacentHTML vs appendChild vs append vs insertAdjacentElement

innerHTML vs insertAdjacentHTML vs appendChild vs append vs insertAdjacentElement

Class Selector vs ID Selector vs Data Attribute Selector Performance Test

Class Selector vs ID Selector vs Data Attribute Selector Performance Test

Check if an element contains a class name using a regular expression

No description provided

array.includes vs set.has for medium n

array.includes vs set.has for medium n

string includes vs foreach (split)

No description provided

native slice vs native reduce vs lodash chunk

native slice vs lodash chunk

native slice vs lodash chunk

native slice vs lodash chunk

JS Regex vs .startsWith vs .indexOf and lastIndexOf

fork of https://www.measurethat.net/Benchmarks/Show/975/11/regex-vs-indexof-vs-startswith-vs-substr "aaa".IndexOf("a") will fail for ends with

Convert string to number

Perform string number to number type

lodash.get vs optional chaining(babel) vs optional chaining(es2020) vs Without Optional chaining

Compare lodash.get to babel transpiled ?. (optional chaining) operator

switch vs dictionary lookup

Performance comparison between javascript switch and a dictionary lookup for a simple string return

Pierre benchmark

No description provided

object looping

No description provided

Map get VS Map has then get

Map get VS Map has get

String() vs .toString() vs + vs ES6

No description provided

Regexp vs split cookie

No description provided

Immerjs vs Immutable vs Shallow copy vs Object.assign (performance test)

No description provided

NEW BENCHMARK Your Benchmarks