Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

bignumber.js vs. big.js vs. decimal.js (2)

- https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0

Append(...Node) vs append(node)

No description provided

object - key access vs object - key access(long key)

No description provided

Ramda vs json stringify

No description provided

math pow vs multiply vs **

No description provided

set.has vs. array.includes 1million

No description provided

classList.contains() vs closest() performance

imitating click

for-in vs object.keys (2)

No description provided

Lodash Times vs Array.from callback

_times(n,()=>func()) vs. Array.from({length: n},(_,i) => func())

mathjs random vs Math.random

No description provided

startsWith vs substring vs indexOf

startsWith vs substring vs indexOf

binaryStringPad

testing 3 methods of padding binary string

string vs number vs symbol

No description provided

String() vs .toString() vs Concatenation vs Template string

No description provided

Caching length property vs getting it each time in the loop - ak

save length of the array in the variable vs get it the loop

new Date("2020-03-20 0:04:02").getDate()

No description provided

Iteration Speed 2

No description provided

StringInterpolation vs stringConcatenation

No description provided

Teste some vs find

No description provided

Some vs Find 100k items

No description provided

Array loop vs foreach (static & index)

No description provided

case insensitive comparison

No description provided

slice vs substring check010

slice vs substring

Different ways (template importNode, vanilla js, innerHTML) to create DOM node

No description provided

DOM get attributes of children vs JS Array READ performance v3

Results: Reading the DOM with nextElementSibling + getAttribute is less than 5% slower than an JS array list. textContent is slightly faster than a JS array list, and nodeValue is 3X faster. Listing a JS array in a for i-- loop backwards yield ~2X performance