Java Magazine, May/June 2019
ORACLE COM JAVAMAGAZINE MAY JUNE 2019 49 containers Req Sec 105k 18118 167k 7884 59802 requests in 3000s 570MB read Requests sec 199321 Transfer sec 19465KB Native image version which produces a very similar result wrk t2 c100 d30s R2000 http 127001 8080 Running 30s test @ http 127001 8080 2 threads and 100 connections Thread calibration mean lat 1196ms sampling interval 10ms Thread calibration mean lat 2788ms sampling interval 10ms Thread Stats Avg Stdev Max Stdev Latency 143ms 71590us 578ms 7034 Req Sec 107k 137k 555k 8940 58898 requests in 3001s 562MB read Requests sec 196288 Transfer sec 19169KB Note the output for both results has been slightly truncated to fit the page Ed This is not a rigorous benchmark of course but these numbers demonstrate that for a short span a native image can show similar performance to the JDK version of an application If you want even better throughput of native images you can consider the Oracle GraalVM enterprise version of GraalVM which is a proprietary product and includes additional performance enhancements For native images it includes profile guided optimizations among other optimizations which means you can build an instrumented image gather the profile data by applying load and then build the final image with performance optimizations that are tailored to the applications specific needs This brings performance almost to the levels of the warmed up JIT
You must have JavaScript enabled to view digital editions.