Major Clojure 1.10 performance degredation on JDK11
ehashman at debian.org
Wed Feb 6 04:54:52 GMT 2019
Hi Alex (+cc team),
I'm working on upgrading Clojure 1.9 in Debian to Clojure 1.10.
I noticed when running my very brief autopkgtest suite that the tests
were unusually slow. Sure enough, I seem to have hit some sort of
startup time degradation. Here's some tests run with various JDKs:
elana at debian:/debian$ time /usr/lib/jvm/java-8-openjdk-amd64/bin/java -cp /usr/share/java/clojure-1.10.jar clojure.main -e '"hi"'
elana at debian:/debian$ time /usr/lib/jvm/java-9-openjdk-amd64/bin/java -cp /usr/share/java/clojure-1.10.jar clojure.main -e '"hi"'
elana at debian:/debian$ time /usr/lib/jvm/java-10-openjdk-amd64/bin/java -cp /usr/share/java/clojure-1.10.jar clojure.main -e '"hi"'
elana at debian:/debian$ time /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /usr/share/java/clojure-1.10.jar clojure.main -e '"hi"'
It's also substantially slower than 1.8 and 1.9 on JDK11:
elana at debian:/debian$ time clojure1.9 -e '"hi"' # alias for the command line above
elana at debian:/debian$ time clojure1.8 -e '"hi"'
Debian Buster isn't going to ship with JDK8, unfortunately, so I'm
hoping we can figure out the source of the issue in order to get 1.10
into the release. I just discovered the performance regression on my
latest build so I haven't had much time to dig into root causes, but I
wondered if you were aware of any performance issues with Clojure 1.10
Throwing some possible things out there: more weirdness from
reproducible builds (I don't think Clojure is reproducible yet anyways),
bytecode recompilation due to mismatch (would be weird, I'm building it
with JDK11), ...
I think it would also be good to check 1.8 and 1.9 on JDKs 8-10 to
compare results (but I haven't had the chance to do so).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the Pkg-clojure-maintainers