Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
a[i] === b[i] when a[i] strictly equals b[i]
394/s
a[i] === b[j] when a[i] different than b[j]
216/s
a[i].startsWith(b[j]) when a[i] different than b[j]
131/s
a[i].startsWith(b[i]) when a[i] strictly equals b[i]
12/s

Fastest: a[i] === b[i] when a[i] strictly equals b[i] (33.8x faster)

View exact numbers
  • a[i] === b[i] when a[i] strictly equals b[i]: 394 ops/sec
  • a[i] === b[j] when a[i] different than b[j]: 216 ops/sec
  • a[i].startsWith(b[j]) when a[i] different than b[j]: 131 ops/sec
  • a[i].startsWith(b[i]) when a[i] strictly equals b[i]: 12 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Browser OS User Agent When Created
Chrome 147 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 2 months ago
Chrome 145 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 4 months ago
Chrome 145 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0 5 months ago
Chrome 142 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 8 months ago
Chrome 131 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 one year ago
Chrome 131 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 one year ago
Chrome 131 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 one year ago
Chrome 125 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 2 years ago