Skip to content

feat(http2): make benchmark run for at least 5 sec#25

Merged
tyoshino merged 2 commits intomainfrom
tyoshino/time
Mar 19, 2026
Merged

feat(http2): make benchmark run for at least 5 sec#25
tyoshino merged 2 commits intomainfrom
tyoshino/time

Conversation

@tyoshino
Copy link
Copy Markdown
Collaborator

No description provided.

}

BENCHMARK(BM_HTTP2Client)
->UseRealTime()
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changing to report real-time as the benchmark involves network communications

state.counters["p50_latency_ms"] = client.latencies[client.latencies.size() * 0.50];
state.counters["p90_latency_ms"] = client.latencies[client.latencies.size() * 0.90];
state.counters["p99_latency_ms"] = client.latencies[client.latencies.size() * 0.99];
state.counters["p10_latency_us"] = client.latencies_us[client.latencies_us.size() * 0.10];
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to print latencies in microsecond

@tyoshino tyoshino requested a review from wenbozhu March 19, 2026 04:17
@tyoshino tyoshino merged commit 760e392 into main Mar 19, 2026
2 checks passed
@tyoshino tyoshino deleted the tyoshino/time branch March 19, 2026 04:38
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