37
Java is Very Fast, If You Don’t Create Many Objects
(blog.vanillajava.blog)
For discussing Java, the JVM, languages that run on the JVM, and other related technologies.
When I worked for Amazon, someone had created a command line tool to be used in builds, but repeatedly starting up JVMs is painfully slow. I rewrote the app in C++ and it could be invoked 81 times vs one invocation of Java version.
If I need speed, I'll use C++. If I need developer productivity, I'll use Ruby.
I'm not so sure if the JVM startup was the culprit in your situation. The Computer Language Benchmarks Game shows that even for short runtimes, the startup doesn't affect their performance numbers that much
That link just compares benchmarks with and without warmup, but not without startup. The JVM's startup can take upwards of 2 seconds, depending on the program.
Oh, I'm dumb. Thanks for clearing this up :)