nyx 0.3.0

Provides functionality for finding the throughput of iterators, readers, and writers.
Documentation

nyx

Travis Crates.io Docs

Provides functionality for finding the throughput of iterators, readers, and writers.

Examples

Add this to Cargo.toml:

[dependencies]
nyx = "0.3"

And this to main.rs:

use std::io;

fn main() {
    let mut repeat = nyx::read::stdout(io::repeat(0));
    io::copy(&mut repeat, &mut io::sink()).unwrap();
}

This will write the amount of bytes copied per second to stdout in one second intervals.

28.06 GiB/s
29.34 GiB/s
30.06 GiB/s
29.33 GiB/s

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.