Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sliceop: improve performances of Take
name old time/op new time/op delta Take/Len=2-8 2.95ns ± 2% 2.96ns ± 2% ~ (p=0.952 n=20+20) Take/Len=4-8 3.43ns ± 1% 3.67ns ± 1% +6.96% (p=0.000 n=20+19) Take/Len=8-8 3.92ns ± 2% 4.17ns ± 1% +6.31% (p=0.000 n=19+20) Take/Len=128-8 36.4ns ± 2% 35.6ns ± 2% -2.21% (p=0.000 n=20+20) Take/Len=1024-8 278ns ± 5% 271ns ± 2% -2.29% (p=0.001 n=17+19) Take/Len=1048576-8 1.27ms ± 2% 0.67ms ± 6% -46.97% (p=0.000 n=19+20) name old alloc/op new alloc/op delta Take/Len=2-8 0.00B 0.00B ~ (all equal) Take/Len=4-8 0.00B 0.00B ~ (all equal) Take/Len=8-8 0.00B 0.00B ~ (all equal) Take/Len=128-8 0.00B 0.00B ~ (all equal) Take/Len=1024-8 0.00B 0.00B ~ (all equal) Take/Len=1048576-8 0.00B 0.00B ~ (all equal) name old allocs/op new allocs/op delta Take/Len=2-8 0.00 0.00 ~ (all equal) Take/Len=4-8 0.00 0.00 ~ (all equal) Take/Len=8-8 0.00 0.00 ~ (all equal) Take/Len=128-8 0.00 0.00 ~ (all equal) Take/Len=1024-8 0.00 0.00 ~ (all equal) Take/Len=1048576-8 0.00 0.00 ~ (all equal)
- Loading branch information