Settings
Help

Crate arti_bench

Crate arti_bench 

Source
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
BenchmarkResults πŸ”’
A set of benchmark results for a given BenchmarkType, including information about averages.
BenchmarkSummary πŸ”’
A summary of all benchmarks conducted throughout the invocation of arti-bench.
ClientTiming
Timing information from the benchmarking client.
ServerTiming
Timing information from the benchmarking server.
Statistic πŸ”’
Some information about a set of benchmark samples collected during multiple runs.
StreamIsolationTracker πŸ”’
Helper type: track a StreamIsolation token over a set of runs.
TimingSummary
A summary of benchmarking results, generated from ClientTiming.

EnumsΒ§

BenchmarkType πŸ”’
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.