Forked from a previous comparison which made use of the lodash get's default parameter. The comparison wasn't fair because the vanilla JS wasn't adding a default value with nullish coalescing.
switch vs object literal benchmark
Determining if instanceof is slower than checking against a known property
Test performance of different ways of get just one particular DOM element
Compares slice and substring to each other when trimming 1 character from both ends of a string
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