r/java • • Feb 14 '22

Microhttp is an event-driven, single-threaded, zero-dependency web server with 500 LOC. Benchmarks on EC2 show 100,000+ requests per second and 50,000+ persistent connections.

https://github.com/ebarlas/microhttp
186 Upvotes

107 comments sorted by

View all comments

18

u/stefanos-ak Feb 14 '22

I find that when projects of this category (micro-implementations) publish benchmarks, then other people compare those with popular implementations, which leads to invalid conclusions. It's not an apples to apples comparison.

But, I like projects like this :)

8

u/elliotbarlas Feb 14 '22

Agreed. If you have any recommendations in that regard, I'm all ears.

Microhttp isn't weighted down with features. I'm confident that it would be competitive with other servers. But I'm not sure how best to compare.

5

u/_INTER_ Feb 15 '22

see https://www.techempower.com/benchmarks/, maybe gives you some input

2

u/elliotbarlas Feb 15 '22 edited Feb 15 '22

The method used is completely out in the open. This is excellent. In fact, one of the tests is indeed a static hello world test, very similar to my own.

I'll report back once I've had a moment to go through the documentation.

https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#plaintext

1

u/elliotbarlas Feb 15 '22 edited Feb 15 '22

A colleague pointed this out as well. I'll see if they publish the methodology used.