forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
89841: server: fix tracing benchmark r=andreimatei a=andreimatei A tracing benchmark had been inadvertently polluted by creating test cluster settings in the benchmark loop. This patch fixes it, and cleans up the code under test so that it no longer awkwardly stashes the cluster settings. Fixes cockroachdb#89202 With this fix, the benchmark shows an expected degradation since 22.1 caused by one new alloc, which is worth it. It's interesting that these results are with the 22.1 benchmark built with go1.19. With 22.1 built with 1.17 and master built with 1.19, the new numbers are significantly better than 22.1. ``` name old time/op new time/op delta SetupSpanForIncomingRPC/traceInfo-32 304ns ± 1% 382ns ± 2% +25.41% (p=0.008 n=5+5) SetupSpanForIncomingRPC/grpcMeta-32 1.21µs ± 3% 1.18µs ± 2% -2.87% (p=0.024 n=5+5) SetupSpanForIncomingRPC/no_parent-32 311ns ± 4% 384ns ± 5% +23.49% (p=0.008 n=5+5) name old alloc/op new alloc/op delta SetupSpanForIncomingRPC/traceInfo-32 48.0B ± 0% 80.0B ± 0% +66.67% (p=0.008 n=5+5) SetupSpanForIncomingRPC/grpcMeta-32 592B ± 0% 624B ± 0% +5.41% (p=0.008 n=5+5) SetupSpanForIncomingRPC/no_parent-32 48.0B ± 0% 80.0B ± 0% +66.67% (p=0.008 n=5+5) name old allocs/op new allocs/op delta SetupSpanForIncomingRPC/traceInfo-32 1.00 ± 0% 2.00 ± 0% +100.00% (p=0.008 n=5+5) SetupSpanForIncomingRPC/grpcMeta-32 7.00 ± 0% 8.00 ± 0% +14.29% (p=0.008 n=5+5) SetupSpanForIncomingRPC/no_parent-32 1.00 ± 0% 2.00 ± 0% +100.00% (p=0.008 n=5+5) ``` Release note: None Epic: None Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
- Loading branch information
Showing
4 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters