assfd

Benchmark created on


Setup

var codes = ["COM_00006","COM_00007","COM_00023","COM_00039","COM_00040","COM_00047","COM_00049"];
var reg = /COM_000(?:0[6-7]|23|39|40|47|49)/

Test runner

Ready to run.

Testing in
TestOps/sec
regex
reg.test("COM_00040")
ready
arr
codes.includes("COM_00040")
ready

Revisions

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