Commit 25ac678
committed
colblk: fix for BenchmarkUnsafeIntegerSlice
Take the random row index generation out of the measured path.
```
name old time/op new time/op delta
UnsafeIntegerSlice/uint64,delta8-10 3.54ns ± 0% 1.25ns ± 1% -64.65% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint64,delta4-10 3.44ns ± 0% 0.94ns ± 0% -72.70% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint64,delta2-10 3.36ns ± 0% 0.63ns ± 0% -81.36% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint64,delta1-10 3.30ns ± 0% 0.63ns ± 1% -80.74% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint64,delta0-10 3.30ns ± 1% 0.51ns ± 0% -84.43% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint32,delta4-10 3.44ns ± 0% 0.94ns ± 2% -72.55% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint32,delta2-10 3.36ns ± 0% 0.63ns ± 1% -81.39% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint32,delta1-10 3.34ns ± 3% 0.62ns ± 0% -81.38% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint32,delta0-10 3.33ns ± 2% 0.51ns ± 0% -84.80% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint16,delta2-10 3.40ns ± 1% 0.64ns ± 5% -81.29% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint16,delta1-10 3.30ns ± 0% 0.62ns ± 0% -81.13% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint16,delta0-10 3.29ns ± 0% 0.51ns ± 0% -84.63% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint8,delta1-10 3.29ns ± 0% 0.62ns ± 0% -81.09% (p=0.029 n=4+4)
UnsafeIntegerSlice/uint8,delta0-10 3.30ns ± 0% 0.51ns ± 0% -84.65% (p=0.029 n=4+4)
```1 parent a6d2952 commit 25ac678
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
| 55 | + | |
50 | 56 | | |
51 | | - | |
| 57 | + | |
52 | 58 | | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
0 commit comments