the-benchmarker / web-frameworks

Which is the fastest web framework?
MIT License
6.97k stars 655 forks source link

[C] Add h2o #5775

Open IngwiePhoenix opened 1 year ago

IngwiePhoenix commented 1 year ago

Hello!

I came across this while browsing around for web server benchmarks after having had a long discussion with a friend about how performant Python really was for web apps.

I noticed that the selection of C examples is a little thin, so I would love to recommend h2o! It seems pretty promising, builds perfectly fine on Linux and claims to be pretty fast. Would love to see how it faires against the other benchmarks.

Thanks and kind regards, Ingwie

waghanza commented 1 year ago

Hi @IngwiePhoenix,

Feel free to open a PR then ❤️

We (mostly me) could take care of any implementation in here.

If you want to make a PR, you should implement h2o (in c folder) with the following :

Regards,

IngwiePhoenix commented 1 year ago

A'right, time to get my hands dirty then :)

I noticed a few Docker files here and there. Should I be implementing the test with Docker then?

waghanza commented 1 year ago

the dockerfile is created automatically during the result update process (bundle exec rake config -> using logic-less template and configuration file -> config.yaml), but let start the PR and write some build instruction on the description, I'll assist you writing config.yaml

jamesli2021 commented 1 year ago

In fact, I have used H2O for website some years ago, it's like an Nginx (H2O with MRuby an embedded version of ruby which is slower than Ruby).

Is this going to be build using MRuby or custom code?

On the other hand, picohttpparser is appear to be fastest as far as I remember. https://github.com/h2o/picohttpparser

V language leverage on pico in TechEmpower benchmark with turn out one of the fastest. As much as it can run, it's a metrics on routers, not useful in real world. https://www.techempower.com/benchmarks/#section=data-r21&test=plaintext

waghanza commented 1 year ago

h2o or any v framework could be used to create any web based service, then I think it is accurate to list them here ❤️

paulie-g commented 11 months ago

On the other hand, picohttpparser is appear to be fastest as far as I remember. https://github.com/h2o/picohttpparser

V language leverage on pico in TechEmpower benchmark with turn out one of the fastest. As much as it can run, it's a metrics on routers, not useful in real world. https://www.techempower.com/benchmarks/#section=data-r21&test=plaintext

picohttpparser/picoev has a number of optimisations that work at low connection numbers and don't at higher ones. It's very sensitive to the parameters of the benchmark/load test.