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

Function BenchmarkMsgPipelineSimple

internal/msgpipeline/bench_test.go:29–42  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

27)
28
29func BenchmarkMsgPipelineSimple(b *testing.B) {
30 target := testutils.Target{InstName: "test_target", DiscardMessages: true}
31 d := MsgPipeline{msgpipelineCfg: msgpipelineCfg{
32 perSource: map[string]sourceBlock{},
33 defaultSource: sourceBlock{
34 perRcpt: map[string]*rcptBlock{},
35 defaultRcpt: &rcptBlock{
36 targets: []module.DeliveryTarget{&target},
37 },
38 },
39 }}
40
41 testutils.BenchDelivery(b, &d, "sender@example.org", []string{"rcpt-X@example.org"})
42}
43
44func BenchmarkMsgPipelineGlobalChecks(b *testing.B) {
45 testWithCount := func(checksCount int) {

Callers

nothing calls this directly

Calls 1

BenchDeliveryFunction · 0.92

Tested by

no test coverage detected