This proves slices.Delete
is the fastest method on x86-64
by CPU instruction count.
All methods usually report 0 nanoseconds when running these tests using time
, that is why it tests by using CPU instruction count.
delete without order preserved
22 CPU instructions (speed)
delete using append with order preserved
1508 CPU instructions (speed)
delete using slices.Delete with order preserved