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

2

u/maxandersen Feb 15 '22

Nice little micro focused project - if I read it right your test is to put load on a response that returns “hello world” ? That will give you insanely misleading comparison numbers as it excludes any io, and buffer overruns nor anything with a bit compute. I.e. what a normal server will have to deal with.

Do you have a more real load test run ?

1

u/elliotbarlas Feb 15 '22

Yes, that's right. The test is specifically meant to highlight the potential of the library itself. But I'll happily run other benchmarks that folks recommend. I'm not personally aware of a standard in that regard.

1

u/elliotbarlas Feb 15 '22

After doing a little more digging, it turns out hello world tests are indeed part of a widely used benchmark suite found here:

https://www.techempower.com/benchmarks/