$ git checkout 65a0bf3
$ benchdiff --old HEAD~1 -r BenchmarkRawNode -c 5 .
checking out '91eb751'
building benchmark binaries for '91eb751' 1/1 |
test binaries already exist for '65a0bf3'; skipping build
pkg=1/1 iter=5/5 go.etcd.io/raft/v3 -
name old time/op new time/op delta
RawNode/two-voters-10 1.14µs ± 1% 1.39µs ± 3% +22.47% (p=0.008 n=5+5)
RawNode/single-voter-10 685ns ± 2% 918ns ± 2% +33.99% (p=0.008 n=5+5)
name old firstIndex/op new firstIndex/op delta
RawNode/single-voter-10 2.00 ± 0% 1.00 ± 0% -50.00% (p=0.008 n=5+5)
RawNode/two-voters-10 6.00 ± 0% 3.00 ± 0% -50.00% (p=0.008 n=5+5)
name old lastIndex/op new lastIndex/op delta
RawNode/single-voter-10 2.00 ± 0% 2.00 ± 0% ~ (all equal)
RawNode/two-voters-10 2.00 ± 0% 2.00 ± 0% ~ (all equal)
name old ready/op new ready/op delta
RawNode/single-voter-10 2.00 ± 0% 2.00 ± 0% ~ (all equal)
RawNode/two-voters-10 2.00 ± 0% 2.00 ± 0% ~ (all equal)
name old term/op new term/op delta
RawNode/two-voters-10 1.00 ± 0% 1.00 ± 0% ~ (all equal)
RawNode/single-voter-10 0.00 ± 0% 0.00 ± 0% +33.33% (p=0.008 n=5+5)
name old alloc/op new alloc/op delta
RawNode/single-voter-10 415B ± 1% 534B ± 0% +28.62% (p=0.016 n=5+4)
RawNode/two-voters-10 637B ± 0% 888B ± 1% +39.43% (p=0.008 n=5+5)
name old allocs/op new allocs/op delta
RawNode/two-voters-10 7.00 ± 0% 8.00 ± 0% +14.29% (p=0.008 n=5+5)
RawNode/single-voter-10 5.00 ± 0% 6.00 ± 0% +20.00% (p=0.008 n=5+5)
Looks like #8 gave us a regression in alloc count.