var location = "example.com";
var str=location;
if (str.substring(0, 4)=="www.") str = str.substring(4);
var str=location.replace(/^www\./,'');
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