Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a simple benchmark #762

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Add a simple benchmark #762

merged 2 commits into from
Apr 9, 2024

Conversation

trungda
Copy link
Contributor

@trungda trungda commented Apr 8, 2024

This PR adds a simple benchmark to measure perf improvement changes. E.g., a potential fix for this issue: #531

The benchmark is simple: have a client send 100_000 requests to a server and wait for a response.

Output:

cargo bench
H2 running in current-thread runtime at 127.0.0.1:5928:
Overall: 353ms.
Fastest: 91ms
Slowest: 315ms
Avg    : 249ms
H2 running in multi-thread runtime at 127.0.0.1:5929:
Overall: 533ms.
Fastest: 88ms
Slowest: 511ms
Avg    : 456ms

@trungda trungda changed the title Add simple h2 benchmark Add a simple benchmark Apr 8, 2024
@Noah-Kennedy Noah-Kennedy merged commit e2168de into hyperium:master Apr 9, 2024
6 checks passed
@trungda trungda deleted the h2-bench branch April 9, 2024 18:06
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.

None yet

2 participants