Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Map vs Object hasOwnProperty

Lookup of map vs object

Test if array is empty

No description provided

fromArray or desctucturing to convert Set to array

No description provided

pop vs length 123456 22

asd asd asd asd asd

getCookie: for vs for...of vs indexOf vs find vs reduce

Performance comparison of 5 functions to get Cookie value from a document.cookie string.

iso date string sort comparison

compares ways of sorting a list of dates in the form of ISO dates

find() vs indexOf() vs for...of vs for-loop - bigger array

Testing the difference between native loops and find() with a bigger array of 10,001 elements :) Fixed bug in the original test forked from: https://www.measurethat.net/Benchmarks/Show/4261/0/find-vs-forof-vs-for-loop (node.id is undefined in find() test)

isNumber: regex vs isNaN vs string comparison (version: 1) vs parseInt

No description provided

childNodes vs children vs firstChild vs firstElementChild

Fastest way to list children

Number.parseFloat vs parseFloat

No description provided

Boolean constructor vs double negotiation trick in javascript - with added single negation test

No description provided

Map vs Array vs Object vs Set add item speed in 50000 iters 2

No description provided

npm:fast-cartesian product vs native .reduce()

No description provided

Try/catch performance for control flow #4

No description provided

replace content

Howto clear Element Content

regex vs double replace vs substring

No description provided

Clear Element content v4

Howto clear Element Content

Decoding ascii: TextDecoder vs Js 2

Measure performance of ascii decoding for various string lengths.

Number vs Number.parseInt vs parseInt

No description provided

Decoding ascii: TextDecoder vs Js

Measure performance of ascii decoding for various string lengths.

TextDecoder vs Js

No description provided

x**0.5 vs Math.pow(x,0.5) vs Math.sqrt(x)

No description provided

Truncate performance

Description

find vs findIndex

find() vs findIndex() in Javascript

.endsWith vs includes

No description provided

NEW BENCHMARK Your Benchmarks