Can Java cold-start?
A GraalVM based HTTP service
In this installment of the series
we are using examples created using just GraalVM to cold start a HTTP server.
If you want to run the experiment yourself you can download the
example.tar.gz file.
Example |
Process start |
Process ready |
Process total |
Example 41 - GraalVM |
57 ms |
39 ms |
96 ms |
These numbers were collected on a Mac Mini M1 with 16GB using Java 17
Note the generated x86 binary causes Rosetta2 to be used as there
currently is no native M1 support for GraalVM
Legend
- Process start - the amount of time it takes before the JVM
is executing your code.
- Process ready time - the amount of time it takes for the HTTP
server to be ready for processing.
- Process total - the total time (process start + process
ready).
If you have any comments, suggestions or concerns, please start a
discussion
on GitHub.
Posted November 8th, 2021
Up