Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Windows
Desktop
2 years ago
Benchmark.js
Test compare1
7.1M/s
Test compare2
4.6M/s
View exact numbers
Test name Executions per second
Test compare1 7,056,551 Ops/sec
Test compare2 4,565,247 Ops/sec
Script Preparation code:
Tests: