Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Windows
Desktop
2 years ago
a[i] === b[i] when a[i] strictly equals b[i]
424/s
a[i] === b[j] when a[i] different than b[j]
245/s
a[i].startsWith(b[j]) when a[i] different than b[j]
126/s
a[i].startsWith(b[i]) when a[i] strictly equals b[i]
11/s
View exact numbers
Test name Executions per second
a[i] === b[i] when a[i] strictly equals b[i] 424 Ops/sec
a[i] === b[j] when a[i] different than b[j] 245 Ops/sec
a[i].startsWith(b[j]) when a[i] different than b[j] 126 Ops/sec
a[i].startsWith(b[i]) when a[i] strictly equals b[i] 11 Ops/sec
Script Preparation code:
Tests: