37
you are viewing a single comment's thread
view the rest of the comments

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.

[-] FriendOfFalcons@kbin.social 1 points 1 year ago

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

[-] aloso@programming.dev 5 points 1 year ago

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.

[-] FriendOfFalcons@kbin.social 2 points 1 year ago

Oh, I'm dumb. Thanks for clearing this up :)

load more comments (10 replies)
this post was submitted on 13 Jul 2023
37 points (100.0% liked)

Java

1367 readers
1 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 1 year ago
MODERATORS