for loop vs combined map vs looped together vs looped together double listFastest: C (1.5x faster)
601,424 ops/sec
589,386 ops/sec
552,769 ops/sec
547,982 ops/sec
438,693 ops/sec
423,252 ops/sec
408,406 ops/sec
407,614 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| for loop | |
| combined map | |
| looped together | |
| looped together double list |
| Test name | Executions per second |
|---|---|
| ✓ combined map | 414,596 Ops/sec |
| looped together | 400,928 Ops/sec |
| looped together double list | 398,349 Ops/sec |
| for loop | 110,815 Ops/sec |