mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
Touch up examples to ensure consistency
This commit is contained in:
+13
-1
@@ -1,7 +1,19 @@
|
||||
//! A small server that writes as many nul bytes on all connections it receives.
|
||||
//!
|
||||
//! There is no concurrency in this server, only one connection is written to at
|
||||
//! a time.
|
||||
//! a time. You can use this as a benchmark for the raw performance of writing
|
||||
//! data to a socket by measuring how much data is being written on each
|
||||
//! connection.
|
||||
//!
|
||||
//! Typically you'll want to run this example with:
|
||||
//!
|
||||
//! cargo run --example sink --release
|
||||
//!
|
||||
//! And then you can connect to it via:
|
||||
//!
|
||||
//! nc -4 localhost 8080 > /dev/null
|
||||
//!
|
||||
//! You should see your CPUs light up as data's being shove into the ether.
|
||||
|
||||
extern crate env_logger;
|
||||
extern crate futures;
|
||||
|
||||
Reference in New Issue
Block a user