Checking strings

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
.length
const str = "https://github.com/ZenhubQA/alfie-testing-1/issues/1200";

const fn = () => str.length > 15;

fn();
ready
startsWith()
const str = "https://github.com/ZenhubQA/alfie-testing-1/issues/1200";

const fn = () => str.startsWith('https://')

fn();
ready
match()
const str = "https://github.com/ZenhubQA/alfie-testing-1/issues/1200";

const fn = () => str.match(/^https?:\/\//)

fn();
ready
includes()
const str = "https://github.com/ZenhubQA/alfie-testing-1/issues/1200";

const fn = () => str.includes('http')

fn();
ready

Revisions

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