Improve techempower benchmark
See original GitHub issueSo, Javalin is back here: https://www.techempower.com/benchmarks/#section=data-r21&l=zik0vz-6bj&test=composite
But it’s not looking so fast. Maybe we can fix that?
The repo for the benchmark code is here: https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Java/javalin
Some things we should do:
- Update to newest Javalin
- Replace Pebble with JTE and precompiled templates
- Remove before/after/error stages from request lifecycle
- Cleanup database controller
- Use custom JSON setup
- Enable Loom via
--enable-preview
and Java 19 - Copy DB stuff from vertx or jooby?
- ~Enable HTTP2~ (not supported by wrk)
- ~See if we can make Jackson faster~
Here is our branch: https://github.com/javalin/FrameworkBenchmarks/tree/javalin-improvements
Issue Analytics
- State:
- Created a year ago
- Comments:26 (26 by maintainers)
Top Results From Across the Web
Round 21 results - TechEmpower Framework Benchmarks
Rnk Framework Best performance (higher is better) Best performance (higher is better) Er...
1 drogon‑core 616,607 100.0% 0
2 xitca‑web 587,955 95.4% 0
3 drogon 556,046...
Read more >JSON performance in TechEmpower benchmarks · Issue #1177
The latest TechEmpower benchmarks have been released. Axum is doing extremely well and is in the top ten.
Read more >TechEmpower Framework Benchmarks - Twitter
Continuous Benchmarking results for the TechEmpower Web Framework Benchmarks Project. ... a 70% speed increase on TechEmpower Fortunes benchmarks ...
Read more >TechEmpower benchmarks for opium running httpaf are ready
Source for the TechEmpower Framework Benchmarks project - TechEmpower/ ... Am I doing something wrong, how can I get better performance?
Read more >I was looking at TechEmpower benchmarks, and noted that ...
34 votes, 55 comments. Hello, maybe you can explain why PHP (php-ngx) seems to be better than Node. Am I reading the score...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is a warmup, I have no idea if this would improve performance but either way I’ll make a graalvm branch and run some benchmarks, you might be right.
After a litte googling I found this: https://bugs.openjdk.org/browse/JDK-8199847
I believe the DB to be the biggest bottleneck right now, we have major improvements comming to Json on a
dsl-json
branch I’m working on. Could you try and replace it?Also, I’ve enabled actions for the repo. They (TechEmpower) encourage forks to use the workflow to test benchmarks, it can verify that the endpoints provide valid output.
@zugazagoitia a lot of people would appreciate that in general, the tutorial is outdated.