Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
colblk: add UnsafeIntegerSlice microbenchmark
Add a microbenchmark for the UnsafeIntegerSlice. ``` goos: darwin goarch: arm64 pkg: github.com/cockroachdb/pebble/sstable/colblk │ old.txt │ │ sec/op │ UnsafeIntegerSlice/uint64,delta8-10 3.651n ± 0% UnsafeIntegerSlice/uint64,delta4-10 3.557n ± 3% UnsafeIntegerSlice/uint64,delta2-10 3.468n ± 1% UnsafeIntegerSlice/uint64,delta1-10 3.418n ± 2% UnsafeIntegerSlice/uint64,delta0-10 3.397n ± 0% UnsafeIntegerSlice/uint32,delta4-10 3.542n ± 6% UnsafeIntegerSlice/uint32,delta2-10 3.530n ± 3% UnsafeIntegerSlice/uint32,delta1-10 3.496n ± 4% UnsafeIntegerSlice/uint32,delta0-10 3.448n ± 2% UnsafeIntegerSlice/uint16,delta2-10 3.512n ± 2% UnsafeIntegerSlice/uint16,delta1-10 3.483n ± 2% UnsafeIntegerSlice/uint16,delta0-10 3.536n ± 3% UnsafeIntegerSlice/uint8,delta1-10 3.405n ± 1% UnsafeIntegerSlice/uint8,delta0-10 3.421n ± 3% geomean 3.490n ``` I experimented with using generics over the delta type too, relying on runtime dynamic dispatch and it was ~20% slower.
- Loading branch information