Native compilation with GraalVM didn’t work in my Linux VM, and I didn’t spend a lot of time on it, but I imagine the numbers would be similar as for Babashka.
At first I just measured the total number of system calls with
strace -c. Then I remembered that most of these runtimes are multi-threaded, so I ran again with
strace -f -c.
Interestingly, these numbers do not correlate with the running times from my last experiment. Clearly, the number of system calls doesn’t tell you anything about how long a particular program takes to run.
As before, these are not comprehensive benchmarks. The actual number of system calls varies from one run to the next; this is just one sample.