Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the fastest language that runs on the JVM

What is the fastest language that runs on the JVM?

Scala? Groovy? JRuby?

like image 277
Verhogen Avatar asked Oct 20 '09 12:10

Verhogen


People also ask

What is the fastest JVM?

For the typical (median) values, there is no significant difference between the various JDKs except for OpenJDK 11 which is about 30% slower than the other versions. The fastest of them all is GraalVM EE 17, but the difference compared to OpenJDK 8/OpenJDK 17 is marginal.

What is the fastest compiler language?

C++ is one of the most efficient and fastest languages. It is widely used by competitive programmers for its execution speed and Standard Template Libraries(STL).


2 Answers

See the Computer Language Benchmarks Game:

Java is very fast.

Scala almost as fast.

JRuby is 10-30 times slower.

Groovy is slow too.

like image 200
Jim Ferrans Avatar answered Nov 07 '22 08:11

Jim Ferrans


Java.

Really, though, for the most part the speed difference will be negligible. Static languages will be faster than dynamic languages, but not by much.

like image 36
Anthony Mills Avatar answered Nov 07 '22 06:11

Anthony Mills