I thought java was tokenized, not compiled. That's why you need their runtime environment isn't it?
How fast does Java compile?
11–20 of 76 posts
Re: How fast does Java compile?
#12Author here, hope people find this article interesting!
Hi, nice article! I wholeheartedly agree with the conclusion after 10 years of fighting with maven for performance gains (that I always measured in minutes not seconds).
Slow feedback cycle is the root of all evil.
Re: How fast does Java compile?
#13How fast does Golang compile? https://www.octobench.com/
Huh, so for anyone interested but did not have the time to do the comparison of the two links of OP and parent post: * java (on a cold jvm): 18.000-32.000 line per second on a single core * java (on a hot jvm): 102.000-115.000 line per second on a single core * golang: 28.000 line per second on 12 core
> From this study we can see the paradox: the Java compiler is blazing fast, while Java build tools are dreadfully slow. Something that should compile in a fraction of a second using a warm javac takes several seconds (15-16x longer) to compile using Maven or Gradle.
edit: typos
Re: How fast does Java compile?
#14I thought java was tokenized, not compiled. That's why you need their runtime environment isn't it?
https://en.m.wikipedia.org/wiki/Java_processor
The JVM is just to run the code on other systems, and is the most common way of running compiled Java code.
Re: How fast does Java compile?
#15How fast does Golang compile? https://www.octobench.com/
Huh, so for anyone interested but did not have the time to do the comparison of the two links of OP and parent post: * java (on a cold jvm): 18.000-32.000 line per second on a single core * java (on a hot jvm): 102.000-115.000 line per second on a single core * golang: 28.000 line per second on 12 core
Re: How fast does Java compile?
#16How fast does Golang compile? https://www.octobench.com/
How fast does Rust compi..... I better not actually.
My anecdotal evidence suggests it is not as slow as many think. It compiles a 500k LoC (that's count of all code in dependencies) project in ~10s on my M2 Pro.
Re: How fast does Java compile?
#17Re: How fast does Java compile?
#18Earlier quoted context omitted.
How fast does Rust compi..... I better not actually.
Why? I'm quite curious. There aren't any good benchmarks on the internet, especially ones comparing it to other languages. I'd love to actually see some real numbers showing how far off it is from Java or Go (I don't doubt it is slower than Java or Go, as it is a much more sophisticated language). My anecdotal evidence suggests it is not as slow as many think. It compiles a 500k LoC (that's count of all code in depen…
Re: How fast does Java compile?
#19Earlier quoted context omitted.
Huh, so for anyone interested but did not have the time to do the comparison of the two links of OP and parent post: * java (on a cold jvm): 18.000-32.000 line per second on a single core * java (on a hot jvm): 102.000-115.000 line per second on a single core * golang: 28.000 line per second on 12 core
Pretty impressive numbers, although it’s fair to say here that while Go comes with its own build toolset, pretty much no one uses plain javac to compile stuff. It’s almost always either Gradle or Maven and as the article hints they slow down builds a lot. > From this study we can see the paradox: the Java compiler is blazing fast, while Java build tools are dreadfully slow. Something that should compile in a fraction…