mcollina / autocannon

fast HTTP/1.1 benchmarking tool written in Node.js
MIT License
7.83k stars 325 forks source link

benchmark chunked encoding #256

Open yoshuawuyts opened 4 years ago

yoshuawuyts commented 4 years ago

A lot of traffic uses chunked encoding; this is common for streams that don't have a known size up front. This often takes a different route in HTTP parsers and encoders that isn't covered when benchmarking requests with a known length. It'd be fantastic if autocannon was able to issue repeated chunked requests.

Motivation for this is @dignifiedquire wanted to bench our chunked impl in https://github.com/http-rs/async-h1, and I didn't see an option for it in autocannon yet. Thanks!

mcollina commented 4 years ago

That would be pretty interesting to do. A PR would be mostly welcomed.

evanxg852000 commented 4 years ago

I am currently catching up on my DB course. @mcollina Is it possible you guide me through? I would like to try a stab at this after the Easter break. That is from Tuesday 14th. Till then I am going to read the source code. Hopefully, I can post my questions here.

mcollina commented 4 years ago

Sure, give a shout whenever you are ready!

nimit95 commented 4 years ago

I would also like to put in some effort too. Any way I can help?

mcollina commented 4 years ago

I think this is a task for a single developer. Let's see how far we get along and then regroup, ok?

This repo has some issues - if you want to work on one feel free to pick!

evanxg852000 commented 4 years ago

@mcollina I have a WIP PR here to discuss around the API before going too far https://github.com/mcollina/autocannon/pull/258