com.twitter.concurrent
These benchmarks measure the overhead of various implementations of a conduit between a source: () => Future[Buf] and sink: Buf => Future[Unit].
source: () => Future[Buf]
sink: Buf => Future[Unit]
The steps are as follows:
1. connect the source to the conduit 2. drain three items from the conduit into the sink
The control benchmark measures the baseline when there is no conduit, i.e., the source feeds directly into the sink.
The control benchmark.
source is plugged directly into sink without a conduit.
source
sink
These benchmarks measure the overhead of various implementations of a conduit between a
source: () => Future[Buf]
andsink: Buf => Future[Unit]
.The steps are as follows:
1. connect the source to the conduit 2. drain three items from the conduit into the sink
The control benchmark measures the baseline when there is no conduit, i.e., the source feeds directly into the sink.