remove finding element using indexof vs remove finding element using filterFastest: remove finding element using indexof (42.2x faster)
1,060,255 ops/sec
25,138 ops/sec
Fastest: remove finding element using indexof (9.1x faster)
207,733 ops/sec
22,810 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| remove finding element using indexof | |
| remove finding element using filter |
| Test name | Executions per second |
|---|---|
| ✓ remove finding element using indexof | 1,205,084 Ops/sec |
| remove finding element using filter | 24,715 Ops/sec |