Get the latest tech news

How fast does Java compile?


compiles have the reputation for being slow, but that reputation does not match today’s reality. Nowadays the Java compiler can compile "typical" Java code at over 100,000 lines a second on a single core.

To begin to understand the problem, lets consider the codebase of the popular Mockito project: It’s not totally trivial to extract the compilation classpath from Gradle, but the following stackoverflow answer gives us some tips: Note that for this benchmark, all third-party dependencies have already been resolved and downloaded from Maven Central.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Java Compile

Java Compile