question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Http4k-netty performs really badly on all benchmarks (with lots of errors)

See original GitHub issue

I’ve checked the techempower benchmarks and it seems that http4k-netty performs really badly and has a lot of errors in the benchmarks. Is this an inherent problem with Netty or is the benchmark bad?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
strohelcommented, Aug 26, 2020

As an aside, it might also be worth testing the old apache engine (http4k-server-apache4) and the sunhttp engine that comes with core, just to see how they compare. I’ve a suspicion that apache4 might outperform apache5… upside_down_face

Here you go: https://storage.googleapis.com/strohel-pub/bench-http4k-server-engines-excerpt/bench-results.html

  • SunHttp is definitely usable just for development (how can it always have > 40 ms latency when the endpoint handling itself if < 2 ms?)
  • apache4 seems to be a tiiiiny bit faster than apache (5), both have some high memory consuption under load issues (I’ll open separate issue)
1reaction
strohelcommented, Aug 24, 2020

Cool, tried it now and I can confirm that the TCP connection is now persistent (netty even adds connection: keep-alive header) and wrk is not fooled anymore. Let me run more representative and lengthier benchmarks and report the results.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog
http4k -* : Upgrade some dependency versions. http4k-server-netty : Fix #141 Http4k-netty performs really badly on all benchmarks. Massive H/T adam-arold!
Read more >
I'd say performance in this benchmark is inversely related ...
I'd say performance in this benchmark is inversely related with how nice it is to express business logic in the respective language/framework, ...
Read more >
Frameworks for server work : r/Kotlin
The abstraction layer in Javalin is a bit thinner, so performance should be a bit ... I use it with Jetty (Jetty is...
Read more >
What I Learnt from Benchmarking Http4k, Ktor (Kotlin) and ...
Errors should be recorded in any benchmark, so here we go. All frameworks behave exemplarily in our case, giving pure zero errors till...
Read more >
http4k: Server as a Function - YouTube
This session is a practical introduction to http4k, a functional toolkit for writing Kotlin HTTP applications for Server, Serverless, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found