Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

another approach to Switch vs Object Literal

Another approach to this test: https://www.measurethat.net/Benchmarks/Show/3444/0/switch-vs-object-literal

Switch vs Object Function vs Object Property

Compares performance of using a 'switch' statement vs object functions and object properties

`Array.slice(0, N)` vs `Array.length = N`

No description provided

Regex vs split/join - actual replace

Now regex flies and split crawls. BTW that regex match split plus join is what jQuery's removeClass() does - just much worse. Had to double check just in case that there's some hidden trick involved.

lodash vs ES6 sortby

No description provided

tagName vs instanceof

No description provided

reading textbox: textContent vs substringData

No description provided

nodeType vs instanceof

No description provided

unshift vs concat vs spread of another array

unshift vs concat vs spread of another array

padLeft comparison with hard coded string

No description provided

padLeft comparison

No description provided

For vs map vs R.map 2

No description provided

Ramda map vs native map vs for

No description provided

prr and skrr

test

Object cloning with Lodash clone vs cloneDeep vs merge vs ES6 object spread vs ES6 Object.assign vs JSON.parse(JSON.stringify())

No description provided

spread vs assign in loop

Using spread operator vs mutating accumulator in reduce loop

string slice vs add one by one

No description provided

Multiple Attributes III

No description provided

Multiple Attributes Performance IV

No description provided

Multiple Attributes Performance III

No description provided

Multiple Attributes Performance

No description provided

precise querySelector vs first element of getElementsByClassName

No description provided

Multiple Attributes II

No description provided

Multiple Attributes

No description provided

Some vs. Filter vs. findIndex

No description provided