SmallList ForEach => findIndex in BigList vs BigList ForEach => includes in SmallTestListFastest: BigList ForEach => includes in SmallTestList (14.1x faster)
68 ops/sec
5 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| SmallList ForEach => findIndex in BigList | |
| BigList ForEach => includes in SmallTestList |
| Test name | Executions per second |
|---|---|
| ✓ BigList ForEach => includes in SmallTestList | 88 Ops/sec |
| SmallList ForEach => findIndex in BigList | 51 Ops/sec |