Measure the performance of instanceOf operator vs comparing a basic string type.
Comparison of using split('T') or slice(0, indexOf('T')) in parsing out a date from an ISO string. Does not include any extra checking from the indexOf to ensure proper formatting of the string. Does not include array size checking after the split.
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