Compares the difference in performance between regex, compiled regex and includes.
Compares deeply two objects
Aim to optimize object deepEqual algorithm in JS
Comparing whether checking is (typeof variable === "undefined") is faster than (variable === undefined)
const shuffleColor = (array) => { const length = array === null ? 0 : array.length; return length ? array[Math.floor(Math.random() * length)] : undefined; };
Testing the difference between native loops and find() with setting multiple variables
Create Your benchmarks
FAQ: FAQ
Source code: GitHub/MeasureThat.net
Report issues: MeasureThat.net/Issues
Based on: Benchmark.js
Facebook page: https://www.facebook.com/MeasureThat.Net
Python benchmarks support: Pyodide