Expand description
A simple benchmarking utility for Arti.
This works by establishing a simple TCP server, and having Arti connect back to it via
a chutney
network of Tor nodes, benchmarking the upload and download bandwidth while doing so.
Structs§
- Benchmark 🔒
- A helper struct for running benchmarks
- Benchmark
Results 🔒 - A set of benchmark results for a given
BenchmarkType
, including information about averages. - Benchmark
Summary 🔒 - A summary of all benchmarks conducted throughout the invocation of
arti-bench
. - Client
Timing - Timing information from the benchmarking client.
- Server
Timing - Timing information from the benchmarking server.
- Statistic 🔒
- Some information about a set of benchmark samples collected during multiple runs.
- Stream
Isolation 🔒Tracker - Helper type: track a StreamIsolation token over a set of runs.
- Timing
Summary - A summary of benchmarking results, generated from
ClientTiming
.
Enums§
- Benchmark
Type 🔒 - The type of benchmark conducted.
Constants§
- RECV_
BUF_ 🔒LEN - How much should we be willing to read at a time?
Functions§
- client 🔒
- Runs the benchmarking client on the provided socket.
- main 🔒
- random_
payload 🔒 - Generate a random payload of bytes of the given size
- run_
timing 🔒 - Run the timing routine
- serve_
payload 🔒 - Runs the benchmarking TCP server, using the provided TCP listener and set of payloads.