Comments (5)
/cc @Karm (mandrel), @galderz (mandrel), @zakkak (mandrel,native-image)
from quarkus.
Hello @nicolasduminil
I'd expect that the number of requests per second of the application running in native executable mode be much higher than the one running in JVM mode.
Why do you expect that? Please have a look at this detailed answer on a similar issue oracle/graal#979 (comment)
To better understand what's happening specifically in your case you may have a look at https://github.com/quarkusio/quarkus/blob/main/TROUBLESHOOTING.md#troubleshooting-performance-issues
Hope that helps
from quarkus.
@zakkak Many thanks for sending me links to how to profile the code but this wasn't at all my point. At least you're making clear that running native executable is much slower (twice) than running in JVM. It's not very intuitive that interpreting the code might be faster than executing native code, that's why I (and Im not the only one) was expecting a very different result. But it's good to know anyway. AFAIC, if the only benefit of native executable is the startup time and the footprint for the price of much less throughput, then not for me.
from quarkus.
It really depends on the application and your needs (higher throughput, higher throughput per watt, faster start up, less energy consumption, etc.). If your benchmarks indicate that native executables are not covering your needs, or that the trade offs are not worth it, then you are probably right. Happy that I was able to help.
from quarkus.
... It's not very intuitive that interpreting the code might be faster than executing native code...
Maybe you need to brush up a bit on HotSpot, in particular the JIT ;)
from quarkus.
Related Issues (20)
- Our Nightly Quarkus build deploy to Nexus was failing after the gradle upgrade to 8.9 HOT 3
- Update examples to use org.htmlunit:htmlunit HOT 5
- Core module is using a mix of traditional `@ConfigRoot` and `@ConfigMapping` HOT 5
- Support for Demonstrating Proof of Possession (DPoP) in quarkus-oidc HOT 1
- Add OIDC response filters HOT 1
- Quarkus JaCoCo in CD/CI error Error while instrumenting io/quarkus/test/common/*
- Sort identity providers by priority in QuarkusIdentityProviderManagerImpl HOT 3
- ArrayIndexOutOfBoundsException occurred when i was serializing data from redis with quarkus redis extension HOT 6
- Incorrect data in the ReactiveDatasourceHealthCheck being set when the connection is down HOT 2
- Narayana throws an exception when working with the latest MSSQL server HOT 1
- Native Image run issue with XML Changelog quarkus-liquibase HOT 8
- Extend @TestSecurity to support Credential HOT 1
- Upgrade Postgres 16 HOT 1
- Native Build is missing GRPC generated class HOT 5
- Resteasy-reactive Unit endpoint reported as "Run time writers required" HOT 2
- Thread dump messed up when running an app using quarkus:run
- unable to load resource bundle from dependent jar HOT 5
- LogManager error of type GENERIC_FAILURE: Handler with name 'console' is linked to a category but not configured. HOT 5
- Using value higher than Integer.MAX_VALUE as REST method arg cause 404 Not Found instead of 400 Bad Request HOT 2
- Unable to migrate to non-deprecated AnnotationsTransformerBuildItem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus.