Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Bzy INCLUDES, EXEC, MATCH Regex test
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 OPR/120.0.0.0 (Edition Yx 05)
Browser:
Opera 120
Operating system:
Windows
Device Platform:
Desktop
Date tested:
7 months ago
Test name
Executions per second
includes
328619.9 Ops/sec
match
304043.0 Ops/sec
exec
302093.3 Ops/sec
Tests:
includes
if (["inactive", "background"].includes("inactive")) { console.log("hello world"); }
match
if ("inactive".match(/inactive|background/)) { console.log("hello world"); }
exec
if (/inactive|background/.exec("inactive")) { console.log("hello world"); }