[][src]Crate clobber

Tool for TCP load testing

The primary goal for clobber is speed; we want to make TCP requests as fast as possible. If you're interested in reading the code, go check out tcp.rs for the interesting part!

This library is used internally by the main.rs binary and the tests, and is not intended for general use in other projects. (But if you're interested, post an issue; I'd be happy to hear about it!)

Examples

let addr = "127.0.0.1:8000".parse().unwrap();
let message = Message::new(b"GET / HTTP/1.1\r\nHost: localhost:8000\r\nConnection: close\r\n\r\n".to_vec());
let config = ConfigBuilder::new(addr)
    .connections(10)
    .build();

tcp::clobber(config, message).unwrap();

Re-exports

pub use config::Config;
pub use config::ConfigBuilder;
pub use stats::Stats;

Modules

config

Settings that control the test

server

Echo server for testing todo: Util server to capture request and save to file

stats
tcp

TCP handling

util

Structs

Message

Message payload

Functions

setup_logger