[][src]Crate tperf

Load test for stand alone transport

How this works:

Usage:

On both nodes:

cargo build --release --bin tperf

cd target/x86_64-unknown-linux-gnu/release

export TPERF=target/x86_64-unknown-linux-gnu/release/tperf

On the server node:

$TPERF --node_id 1 --node_ip 10.12.35.1

     --peer_node_id 2 --peer_node_ip 10.11.35.15
     --role server

Copy the resulting tls_pubkey_cert.1 to the client machine.

On the client node:

$TPERF --node_id 2 --node_ip 10.11.35.15

     --peer_node_id 1 --peer_node_ip 10.12.35.1
     --role client
     --message_count 1000
     --message_size 1M
     --rps 10

Copy the resulting tls_pubkey_cert.2 to the server machine.

Params on client side: --message_count: number of messages to exchange (default: 1000) --message_size: size of the exchanged messages (default: 1K) --rps: number of requests/sec (default: off, no rate limit)

Modules

test_utils

Helper functionality for the tests

Structs

ConfigAndRecords
EventMessage
NoopRateLimiter
RateLimiterImpl
Request
Response
TestClient
TestClientEventHandler

Enums

Role
TestMessage

Constants

ARG_MSG_COUNT
ARG_MSG_SIZE
ARG_NODE_ID
ARG_NODE_IP
ARG_PEER_NODE_ID
ARG_PEER_NODE_IP
ARG_ROLE
ARG_RPS
FLOW_PORT
FLOW_TAG
LATENCY_SCALE
QFULL_DELAY_USEC
REG_V1
STATUS_UPDATE_SEC

Traits

RateLimiter

Functions

cmd_line_matches
generate_config_and_registry
main

Type Definitions

MpscReceiver
MpscSender
RequestMap