MCPcopy
hub / github.com/IBM/sarama / BenchmarkProducerMediumSnappy

Function BenchmarkProducerMediumSnappy

functional_producer_test.go:1283–1287  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1281}
1282
1283func BenchmarkProducerMediumSnappy(b *testing.B) {
1284 conf := NewFunctionalTestConfig()
1285 conf.Producer.Compression = CompressionSnappy
1286 benchmarkProducer(b, conf, "test.1", ByteEncoder(make([]byte, 1024)))
1287}
1288
1289func benchmarkProducer(b *testing.B, conf *Config, topic string, value Encoder) {
1290 setupFunctionalTest(b)

Callers

nothing calls this directly

Calls 3

NewFunctionalTestConfigFunction · 0.85
benchmarkProducerFunction · 0.85
ByteEncoderTypeAlias · 0.85

Tested by

no test coverage detected