func BenchmarkGraphiteMemory(b *testing.B) { cfg := config.ConfigFile{} cfg.Graphite = config.GraphiteConfig{ UDPListenPort: ":2000", } errorChannel := make(chan error, 1) go func() { for e := range errorChannel { b.Logf("%s", e) } }() p := ":2000" l := "/tmp/agent.db" ttl := "1h" aggregations.Init(&p, &l, &ttl, errorChannel) Init(&cfg, errorChannel) for n := 0; n < b.N; n++ { testGraphiteMemoryRun(b, 1) } }