Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array initialization: preallocate vs push (Objects)

No description provided

Symbol vs string vs string bracket vs indirect string

No description provided

Create and append/remove versus display:block/display:none (improved) (without-recreating) (without-x-times)

By writing javascript web applications It is often common the need to show or hide elements like a div according to the user actions. Is it better to do this by creating and appending the node when it is needed or to create the node on the application start and then just display or hide it? This benchmark is a performance test of this particular use case. In this version, the createAppendDiv was isolated from operations that can be done once, so the test executes just the operations that are really essencial for the test case.

Create and append/remove versus display:block/display:none (improved) (without-recreating)

By writing javascript web applications It is often common the need to show or hide elements like a div according to the user actions. Is it better to do this by creating and appending the node when it is needed or to create the node on the application start and then just display or hide it? This benchmark is a performance test of this particular use case. In this version, the createAppendDiv was isolated from operations that can be done once, so the test executes just the operations that are really essencial for the test case.

Replace regex x replaceAll

Testing if replacing using Regex is faster

Object set vs new spread when reducing over results

Compare the new ES6 spread operator with the traditional concat() method and push

Array push vs spread when reducing over results

Compare the new ES6 spread operator with the traditional concat() method and push

for vs do while 2

No description provided

for i inside or outside var 3

No description provided

getElementsByClassName, For i, For of, For each, Some, Every, Map 2

getElementsByClassName, For i, For of, For each, Some, Every, Map

getElementById vs querySelector, with ten elements

No description provided

getElementById vs querySelector, with two elements

No description provided

Function call vs Object

Compare Function calls vs Object

JSON Stringify Speed Test - Large Payloads

This benchmark tests whether the speed or JSON.stringify changes with object size

JSON Stringify Speed Test 13 -

This benchmark tests whether the speed or JSON.stringify changes with object size

JSON Stringify Speed Test 13

This benchmark tests whether the speed or JSON.stringify changes with object size

Lodash.get vs Property dot notation (nested path)

No description provided

push, concat, spread on a simple array

No description provided

Array.includes vs Set.has vas Map.has 2

No description provided

JS Regex vs .startsWith vs .indexOf vs includes 2

fork of https://www.measurethat.net/Benchmarks/Show/975/11/regex-vs-indexof-vs-startswith-vs-substr

JS Regex vs .startsWith vs .indexOf vs includes

fork of https://www.measurethat.net/Benchmarks/Show/975/11/regex-vs-indexof-vs-startswith-vs-substr

test splice vs push

No description provided

getRelativeUrl

No description provided

Spread Operator VS Array.prototype.slice() VS Array.prototype.slice(0)

Spread Operator VS Array.prototype.slice() VS Array.prototype.slice(0)

new Url vs RegEx (1)

No description provided