Skip to content

feat(http2): add a simple benchmark of HTTP2 using libevents and nghttp2#20

Merged
tyoshino merged 5 commits intomainfrom
takeshi/http2
Mar 9, 2026
Merged

feat(http2): add a simple benchmark of HTTP2 using libevents and nghttp2#20
tyoshino merged 5 commits intomainfrom
takeshi/http2

Conversation

@tyoshino
Copy link
Copy Markdown
Collaborator

@tyoshino tyoshino commented Mar 4, 2026

No description provided.

int report_interval = absl::GetFlag(FLAGS_report_interval);
if (report_interval > 0 && client->requests_completed % report_interval == 0) {
struct timeval now;
gettimeofday(&now, NULL);
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.

I'll change this to chrono later

// Send connection preface and initial settings
nghttp2_settings_entry iv[2] = {
{NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, static_cast<uint32_t>(absl::GetFlag(FLAGS_concurrent_requests))},
{NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE, 128 * 1024 * 1024}};
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.

More study on window size needed to conduct the right benchmark and comparison with gRPC one (chttp2 and BDP behavior)

@tyoshino tyoshino changed the title feat(http2): add a simple benchmark of HTTP2 using libevents and nghttp2 feat(http2): add a simple benchmark of HTTP2 using libevents and nghttp2, and compare it with gRPC Mar 4, 2026
@tyoshino tyoshino requested a review from wenbozhu March 4, 2026 23:13
@tyoshino tyoshino changed the title feat(http2): add a simple benchmark of HTTP2 using libevents and nghttp2, and compare it with gRPC feat(http2): add a simple benchmark of HTTP2 using libevents and nghttp2 Mar 9, 2026
http2/.gitignore Outdated
Makefile

build
_deps
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.

added by mistake. removed

@tyoshino tyoshino marked this pull request as ready for review March 9, 2026 01:52
@tyoshino
Copy link
Copy Markdown
Collaborator Author

tyoshino commented Mar 9, 2026

ready for review again

@tyoshino
Copy link
Copy Markdown
Collaborator Author

tyoshino commented Mar 9, 2026

I'll update it to use https://github.com/google/benchmark by a separate PR.

@tyoshino tyoshino merged commit 9c01969 into main Mar 9, 2026
2 checks passed
@tyoshino tyoshino deleted the takeshi/http2 branch March 11, 2026 19:17
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.

2 participants