Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing,sql: introduce BenchmarkTracing
make bench PKG=./pkg/sql/tests \ TESTFLAGS='-benchtime=5000x -count=20' \ BENCHES='BenchmarkTracing' Old is without always-on tracing, new is with. name old time/op new time/op delta Tracing/tracing=x/Insert/rows=1-16 248µs ± 3% 245µs ± 3% -1.10% (p=0.035 n=20+20) Tracing/tracing=x/Update/rows=1-16 334µs ± 2% 334µs ± 3% ~ (p=0.931 n=20+20) Tracing/tracing=x/Delete/rows=1-16 242µs ± 3% 236µs ± 3% -2.13% (p=0.000 n=20+20) Tracing/tracing=x/Scan/rows=1-16 171µs ± 4% 174µs ± 4% ~ (p=0.141 n=19+20) name old alloc/op new alloc/op delta Tracing/tracing=x/Insert/rows=1-16 38.7kB ± 1% 38.8kB ± 1% +0.25% (p=0.009 n=17+20) Tracing/tracing=x/Update/rows=1-16 53.5kB ± 1% 53.5kB ± 1% ~ (p=0.693 n=20+20) Tracing/tracing=x/Delete/rows=1-16 42.3kB ± 1% 42.2kB ± 0% ~ (p=0.833 n=19+17) Tracing/tracing=x/Scan/rows=1-16 23.6kB ± 2% 23.7kB ± 2% ~ (p=0.765 n=19+20) name old allocs/op new allocs/op delta Tracing/tracing=x/Insert/rows=1-16 314 ± 0% 314 ± 0% +0.14% (p=0.004 n=20+13) Tracing/tracing=x/Update/rows=1-16 532 ± 0% 532 ± 0% +0.12% (p=0.002 n=16+19) Tracing/tracing=x/Delete/rows=1-16 324 ± 0% 323 ± 0% ~ (p=0.249 n=19+20) Tracing/tracing=x/Scan/rows=1-16 257 ± 0% 257 ± 1% -0.14% (p=0.011 n=15+20) Release note: None
- Loading branch information