Tests:

Historical Performance Data aggregated from 28 community runs

Desktop Results:
Chrome 23 runs
Switch
166.6M/s
Map
3.3M/s

Fastest: Switch (50.2x faster)

View exact numbers
  • Switch: 166,620,272 ops/sec
  • Map: 3,319,954 ops/sec
Mobile Results:
Safari 5 runs
Switch
434.0M/s
Map
2.8M/s

Fastest: Switch (154.1x faster)

View exact numbers
  • Switch: 434,012,608 ops/sec
  • Map: 2,816,970 ops/sec

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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Switch
    Map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Chrome 141 on Windows
View result in a separate tab
Switch
218.1M/s
Map
4.3M/s
View exact numbers
Test name Executions per second
Switch 218,132,432 Ops/sec
Map 4,278,656 Ops/sec