Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Recursion vs Nested Loops

Will use a function that creates steps(one side of a christmas tree)

Map get VS Map has get 20122

Map get VS Map has get

sort vs reverse test 2

No description provided

sort() vs reverse() when getting last item or first item

No description provided

Visits

No description provided

Convert binary string to bytes

To use browser's atob() or btoa(), we need to convert between bytes and so-called "binary" string. This test converts "binary" string to bytes, for working with results from atob() calls, which decodes base64 to bytes (in the form of binary string).

Convert bytes to binary string

To use browser's atob() or btoa(), we need to convert between bytes and so-called "binary" string. This test convert bytes to "binary" string, for future calls of btoa(), i.e. encoding bytes (in the form of binary string) to base64.

Test uint32array ant biguint64array

Test

Regex vs split/join correct

No description provided

Set merge

No description provided

ES6 Class vs Prototype vs Object Literal vs ES6 Class Extends

No description provided

ES6 Class vs Prototype vs Object Literal vs ES6 Class extends vs ES6 Class extends twice

Test the speed and memory usage using 5 different techniques for constructing class objects.

Python benchmarks support (via Pyodide & WebAssembly)

MeasureThat.net now supports Python in-browser benchmarks via Pyodide. This new feature allows users to write and execute Python code directly within their web browser, enabling seamless performance testing and benchmarking of Python scripts. (added in v1.7.0)

Date constructor inputs

No description provided

Dayjs Date-fns format and add day comparison

No description provided

for-in vs object.keys no foreach

No description provided

jquery 2.2.4 vs 2.1.1

Comparing performance of: jquery 2.2.4 vs 2.1.1

JS string param vs object property as param

No description provided

canvas style.left vs translate

No description provided

singular clone vs batch clone

No description provided

Custom pluck test vs JS map vs lodash map

Testing a functional programming method 'pluck'. This is an in-progress test. Taken from lodash source code, using the Array constructor to make an Array of a specified length, seems to have a considerable impact on performance. In my simple pluck implementation, not using the constructor e.g. const plucked = [], was considerably slower.

JSON.parse vs string.split (big size)

No description provided

JavaScript spread operator vs Object.assign vs assign to empty - performance

No description provided

JS Map get VS JS Map has

Map get VS Map has

Find substring in a long string

Benchmark finding a string in a substring via several methods.