Test name | Executions per second |
---|---|
test | 54396548.0 Ops/sec |
match | 36455508.0 Ops/sec |
startsWith | 2006605952.0 Ops/sec |
array 0 | 2070965888.0 Ops/sec |
includes | 2080307968.0 Ops/sec |
/@.*/.test("@MyVariable")
"@MyVariable".match(/@.*/)
"@MyVariable".startsWith("@")
"@MyVariable"[0] === "@"
"@MyVariable".includes("@")