You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
144941: kvserver: let BenchmarkEmptyRebalance wait for the raft group to be ready r=iskettaneh a=iskettaneh
For leader leases, the raft group will take a few seconds before it can propose new entries because it needs store liveness heartbeats to start. This commit modifies the benchmark by making it wait until the group is ready.
Benchmark results:
name old time/op new time/op delta
EmptyRebalance/add-remove-12 2.85s ± 1% 0.03s ± 8% -98.96% (p=0.000 n=7+8)
name old alloc/op new alloc/op delta
EmptyRebalance/add-remove-12 12.3MB ±13% 1.9MB ± 3% -84.85% (p=0.000 n=10+8)
name old allocs/op new allocs/op delta
EmptyRebalance/add-remove-12 64.7k ± 2% 10.8k ± 0% -83.29% (p=0.000 n=10+8)
Fixes: #144940
Release note: None
Co-authored-by: Ibrahim Kettaneh <[email protected]>
0 commit comments