Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

map over Object (or Record in TS) vs Map clone

No description provided

Math.hypot vs Math.sqrt vs Math.sqrt&pow vs Math.sqrt&**2

Is Math.hypot actually faster than Math.sqrt?

BigInt(a + b) vs BigInt(a) + BigInt(b)

No description provided

[] spread vs mutation vs Object.assign for reduce callback

No description provided

Array.every vs JSON.stringify2123

No description provided

reduce performance

reduce slice performance

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

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

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

NEW BENCHMARK Your Benchmarks