Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Measure Multiple Texts

Using various methods to measure multiple strings of text.

Measure Single Text

Using various methods to measure a single string of text.

Performance Test: substring vs substr vs slice (remove last char)

No description provided

Float string optimization: parseFloat() vs regex

To get a cleaned-up float number with a limited number of digits of precision, which is faster: parsefloat() or a regular expression?

empty an array in JavaScript - splice vs setting length

Based on question on http://stackoverflow.com/questions/1232040/how-do-i-empty-an-array-in-javascript

Array filter vs Set delete

No description provided

Reverse array / reverse vs map

No description provided

native-slice-vs-chunk

No description provided

Array.prototype.filter vs Lodash vs underscore

No description provided

Traverse function vs NodeIterator vs TreeWalker - with TEXT and ELEMENT

Let's compare the speed of 3 different ways to traverse the DOM.

TreeWalker vs querySelectorAll (* all elements)

No description provided

Cached querySelector

Testing if caching querySelector makes a diference

find vs findIndex (Array prototype methods) 22

Measuring which is faster

Round in javascript

No description provided

Lodash isPlainObject vs JS Type Check

No description provided

reduce and sort (native vs lodash)

reduce and sort lengthy/complex array of objects

Lodash: difference vs filter

No description provided

getElementsByClassName last element vs getElementById as last element

No description provided

Switch vs Prepared Object Literal vs Prepared Array

No description provided

Array.from vs spread for converting set to array

No description provided

JQuery: attr vs prop for getting id v2

Compare solutions for getting id from JQuery object.

Lodash: differenceBy vs filter & includes

Comparing performance of: lodash differenceBy with javascript filter and find

Lodash: differenceBy vs filter & find

Comparing performance of: lodash differenceBy with javascript filter and find

lodash.merge vs deepmerge

No description provided

querySelector vs getElementsByClassName [0] with extra

No description provided

NEW BENCHMARK Your Benchmarks