#echo-server #benchmark #duration #clients #tcp #tool #length

app tcp-echo-benchmark

A high-performance TCP echo server benchmark tool measuring throughput using concurrent async clients. Supports configurable payload size, connection count, and test duration.

1 unstable release

0.1.0 Jan 25, 2025

#204 in Concurrency

Download history 96/week @ 2025-01-23 10/week @ 2025-01-30 6/week @ 2025-02-06

112 downloads per month

GPL-3.0 license

18KB
83 lines

TCP Echo Benchmark Tool

A command-line utility written in Rust for benchmarking TCP echo server performance by simulating multiple clients sending and receiving data asynchronously.

Installation

cargo install tcp-echo-benchmark

Usage

tcp-echo-benchmark [-a <address>] [-l <length>] [-c <number>] [-t <duration>]

tcp-echo-benchmark

Options:
  -a, --address     address
  -l, --length      length
  -c, --number      number
  -t, --duration    duration
  --help, help      display usage information

Output example

Benchmarking localhost:8080 with 1 clients, 1 bytes, 5 seconds
Throughput: 69539 request/sec, 69539 response/sec
Total: 347696 requests, 347696 responses

Dependencies

~4–13MB
~114K SLoC