Start of URL

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Regex
let y = "http://URL";
let n = "Not URL";

let a = n.match(/^https?:\/\//) == null;
let b = y.match(/^https?:\/\//) == null
ready
No regex
let y = "http://URL";
let n = "Not URL";

let a = n.startsWith("http://") || n.startsWith("https://");
let b = y.startsWith("http://") || y.startsWith("https://");
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.