@@ -60,6 +60,8 @@ func TestVerificationAgainstFullExecutionPool(t *testing.T) {
6060 require .Equal (t , context .Canceled , verifyEqVoteErr )
6161}
6262
63+ // TestAsyncVerificationVotes creates MakeAsyncVoteVerifier,
64+ // sends Votes (50% valid) for verification, and checks the results
6365func TestAsyncVerificationVotes (t * testing.T ) {
6466 partitiontest .PartitionTest (t )
6567 errProb := float32 (0.5 )
@@ -68,6 +70,8 @@ func TestAsyncVerificationVotes(t *testing.T) {
6870 sendReceiveVoteVerifications (false , errProb , numVotes , numEqVotes , t )
6971}
7072
73+ // TestAsyncVerificationEqVotes creates MakeAsyncVoteVerifier,
74+ // sends EqVotes (50% valid) for verification, and checks the results
7175func TestAsyncVerificationEqVotes (t * testing.T ) {
7276 partitiontest .PartitionTest (t )
7377 errProb := float32 (0.5 )
@@ -76,6 +80,8 @@ func TestAsyncVerificationEqVotes(t *testing.T) {
7680 sendReceiveVoteVerifications (false , errProb , numVotes , numEqVotes , t )
7781}
7882
83+ // TestAsyncVerification creates MakeAsyncVoteVerifier, sends
84+ // Votes and EqVotes (50% valid) for verification, and checks the results
7985func TestAsyncVerification (t * testing.T ) {
8086 partitiontest .PartitionTest (t )
8187 errProb := float32 (0.5 )
@@ -84,6 +90,8 @@ func TestAsyncVerification(t *testing.T) {
8490 sendReceiveVoteVerifications (false , errProb , numVotes , numEqVotes , t )
8591}
8692
93+ // BenchmarkAsyncVerification benchmarks the performance of verifying votes using MakeAsyncVoteVerifier
94+ // with varying vote validity rates. Sends votes and eqVotes.
8795func BenchmarkAsyncVerification (b * testing.B ) {
8896 errProbs := []float32 {0.0 , 0.2 , 0.8 }
8997 for _ , errProb := range errProbs {
@@ -98,6 +106,8 @@ func BenchmarkAsyncVerification(b *testing.B) {
98106 }
99107}
100108
109+ // BenchmarkAsyncVerificationVotes benchmarks the performance of verifying votes using MakeAsyncVoteVerifier
110+ // with varying vote validity rates. Sends only votes.
101111func BenchmarkAsyncVerificationVotes (b * testing.B ) {
102112 errProbs := []float32 {0.0 , 0.2 , 0.8 }
103113 for _ , errProb := range errProbs {
@@ -112,6 +122,8 @@ func BenchmarkAsyncVerificationVotes(b *testing.B) {
112122 }
113123}
114124
125+ // BenchmarkAsyncVerificationEqVotes benchmarks the performance of verifying votes using MakeAsyncVoteVerifier
126+ // with varying vote validity rates. Sends only eqVotes.
115127func BenchmarkAsyncVerificationEqVotes (b * testing.B ) {
116128 errProbs := []float32 {0.0 , 0.2 , 0.8 }
117129 for _ , errProb := range errProbs {
0 commit comments