-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reactor Netty is slower to start than Tomcat #376
Comments
Is it correct that this is with Reactor Netty 0.7.x and not the current master? |
Nope, this is using Reactor Netty |
@sdeleuze Can you test #383. This fixes another issue but while I was investigating this one I saw that the fact that we start a thread might be related, so it will be great if you can provide us a feedback. On my side I see Reactor Netty (with the fix above):
Tomcat
|
Linked to #382 |
@violetagg I will be on PTO next week so I won't be able to do these test, but I suggest to test with |
With the latest snapshot these are the measurements: Reactor Netty
Tomcat
|
Amazing, huge improvement! |
This is not obvious with Spring Boot but Spring Fu minimal webapp benchmarks seems to indicate than Reactor Netty is slower to start than Tomcat.
Rector Netty:
Application started in 0.609 seconds (JVM running for 0.879)
Application started in 0.676 seconds (JVM running for 0.97)
Application started in 0.672 seconds (JVM running for 0.958)
Tomcat:
Application started in 0.440 seconds (JVM running for 0.709)
Application started in 0.440 seconds (JVM running for 0.723)
Application started in 0.445 seconds (JVM running for 0.72)
This should maybe be explored and optimized.
To run Spring Fu minimal webapp with Reactor Netty:
To use Tomcat, update
samples/minimal-webapp/build.gradle.kts
with:And
Application.kt
withserver(tomcat())
.To use Undertow, update
samples/minimal-webapp/build.gradle.kts
with:And
Application.kt
withserver(undertow())
.The text was updated successfully, but these errors were encountered: