Skip to content

Add latency benchmarks against an in-process fake drand node - #29

Open
AnomalRoil wants to merge 1 commit into
masterfrom
bench/relay-latency
Open

AnomalRoil wants to merge 1 commit into
masterfrom
bench/relay-latency

Conversation

@AnomalRoil

Copy link
Copy Markdown
Member

Adds internal/fakenode, a fake drand node serving the Public gRPC API that emits one round per second and records emit times, and bench_test.go, which drives GetBeacon, GetLatest, GetNext, GetBeaconNextRound and the gRPC client through the real handler stack. The round-waiting benchmarks report emit-to-delivery latency percentiles for 1 to 1000 concurrent waiters.

drandHandler now takes the request log writer so benchmarks can discard it. Run with make bench.

internal/fakenode serves the drand Public gRPC API, emits one round per
second and records emit times. bench_test.go drives GetBeacon, GetLatest,
GetNext and the gRPC client through the real handler stack and reports
emit-to-delivery latency percentiles for growing numbers of waiters.

drandHandler takes the request log writer so benchmarks can discard it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant