mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 10:41:19 +00:00
c4c9a8465a
* use faster hash proto * Merge branch 'master' into faster-att-pool * gaz * Merge branch 'faster-att-pool' of github.com:prysmaticlabs/prysm into faster-att-pool * nil checks and failing tests * Merge refs/heads/master into faster-att-pool * Merge refs/heads/master into faster-att-pool * Merge refs/heads/master into faster-att-pool * Merge refs/heads/master into faster-att-pool * Merge refs/heads/master into faster-att-pool * Fix * Merge branch 'faster-att-pool' of github.com:prysmaticlabs/prysm into faster-att-pool * Fix tests
20 lines
380 B
Go
20 lines
380 B
Go
package kv_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/attestations/kv"
|
|
)
|
|
|
|
func BenchmarkAttCaches(b *testing.B) {
|
|
ac := kv.NewAttCaches()
|
|
|
|
att := ðpb.Attestation{}
|
|
|
|
for i := 0; i < b.N; i++ {
|
|
ac.SaveUnaggregatedAttestation(att)
|
|
ac.DeleteAggregatedAttestation(att)
|
|
}
|
|
}
|