Crates.io | s2n-netbench-driver |
lib.rs | s2n-netbench-driver |
version | 0.1.0 |
source | src |
created_at | 2024-01-05 21:52:40.266723 |
updated_at | 2024-01-05 21:52:40.266723 |
description | Internal crate used by s2n-netbench |
homepage | |
repository | https://github.com/aws/s2n-netbench |
max_upload_size | |
id | 1090523 |
size | 16,180 |
This crate contains drivers for each transport protocol.
Netbench will have a dedicated CLI to automate running tests. Until then, the drivers can be used directly.
export DRIVER=s2n-quic
cargo build --release --bin netbench-driver-$DRIVER-server --bin netbench-driver-$DRIVER-client --bin netbench-scenarios
./target/release/netbench-scenarios
./target/release/netbench-driver-$DRIVER-server ./target/netbench/request_response.json
In another terminal
export DRIVER=s2n-quic
export SERVER_0=localhost:4433
./target/release/netbench-driver-$DRIVER-client ./target/netbench/request_response.json
Note: if the netbench driver is being run on a mac, set the local IP on the client driver to 0.0.0.0 as follows:
--local-ip 0.0.0.0
sudo docker-compose --file netbench/netbench-driver/etc/docker-compose.yml --project-directory . build