string contains

Benchmark created on


Description

comparing regex to contains

Setup

const a = "the brown fox jumped of the lazy log"

Test runner

Ready to run.

Testing in
TestOps/sec
regex
a.match(/fox|lazy/)
ready
contains
a.includes('fox') || a.includes('lazy')
ready

Revisions

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