mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
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)
|
||
|
}
|
||
|
}
|