MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / BenchmarkParsePublicKey

Function BenchmarkParsePublicKey

crypto/asymmetric/signature_test.go:435–448  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

433}
434
435func BenchmarkParsePublicKey(b *testing.B) {
436 b.Log(b.Name())
437 buffer := pub.Serialize()
438
439 b.ReportAllocs()
440 b.ResetTimer()
441 for i := 0; i < b.N; i++ {
442 _, err := ParsePubKey(buffer)
443
444 if err != nil {
445 b.Fatalf("error occurred: %v", err)
446 }
447 }
448}
449
450func BenchmarkSignatureSerialization(b *testing.B) {
451 b.Log(b.Name())

Callers

nothing calls this directly

Calls 4

ParsePubKeyFunction · 0.85
NameMethod · 0.80
FatalfMethod · 0.80
SerializeMethod · 0.45

Tested by

no test coverage detected