MCPcopy Create free account
hub / github.com/foxcpp/maddy / BenchmarkStorage_DeliveryZstd

Function BenchmarkStorage_DeliveryZstd

internal/storage/imapsql/bench_test.go:81–90  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

79}
80
81func BenchmarkStorage_DeliveryZstd(b *testing.B) {
82 randomKey := "rcpt-" + strconv.FormatInt(time.Now().UnixNano(), 10) + "@example.org"
83
84 be := createTestDB(b, "zstd")
85 if err := be.CreateIMAPAcct(randomKey); err != nil {
86 b.Fatal(err)
87 }
88
89 testutils.BenchDelivery(b, be, "sender@example.org", []string{randomKey})
90}

Callers

nothing calls this directly

Calls 3

BenchDeliveryFunction · 0.92
createTestDBFunction · 0.85
CreateIMAPAcctMethod · 0.65

Tested by

no test coverage detected