Skip to content

feat(http2): add a simple benchmark of HTTP2 using libevents and nghttp2, and compare it with gRPC#20

Draft
tyoshino wants to merge 3 commits intomainfrom
takeshi/http2
Draft

feat(http2): add a simple benchmark of HTTP2 using libevents and nghttp2, and compare it with gRPC#20
tyoshino wants to merge 3 commits intomainfrom
takeshi/http2

Conversation

@tyoshino
Copy link
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
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
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
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