[mplex] Add benchmark, tweak default split_send_size. (#1834)

* [mplex]  Benchmark different split_send_size configurations.

With both TCP and memory transports. As a result, change the
default `split_send_size` to 8KiB.

* Cleanup

* [mplex] Update CHANGELOG.

* Add throughput information.
This commit is contained in:
Roman Borschel
2020-11-16 17:41:00 +01:00
committed by GitHub
parent 6f1edb0e6a
commit 41d3f72f0e
6 changed files with 191 additions and 6 deletions

View File

@ -119,7 +119,7 @@ impl Default for MplexConfig {
max_substreams: 128,
max_buffer_len: 32,
max_buffer_behaviour: MaxBufferBehaviour::Block,
split_send_size: 1024,
split_send_size: 8 * 1024,
}
}
}