michel at undercouch.de
Wed Feb 19 07:39:34 PST 2014
I'm experiencing very drastic performance issues with Nashorn (JDK 8
b129) compared to Rhino. My script takes almost 13 minutes instead of 16
seconds! I hope you guys can tell me what's going on here.
I've recently tested citeproc-java
(https://github.com/michel-kraemer/citeproc-java) under JDK8 in order to
make sure it keeps running flawlessly when the next Java version comes
out. citeproc-java uses citeproc-js under the hood which is a rather
lines of code (https://bitbucket.org/fbennett/citeproc-js/wiki/Home).
well. There is a test suite consisting of 758 tests. Running this suite
with Oracle Nashorn it takes 12.5 minutes! (see timings below)
This is a very drastic performance drop and I was very surprised to see
this. Is there some way to debug Nashorn in order to find out what is
actually going on here?
Timings on my computer (i5-3570K, 3.4 GHz, 4 cores, 16 GB RAM):
Nashorn (JDK 8 b129):
Steps to reproduce (no prerequisites other than JDK8):
git clone https://github.com/michel-kraemer/citeproc-java.git
./gradlew runTestSuite -PscriptRunnerType=rhino
./gradlew runTestSuite -PscriptRunnerType=jre
More information about the nashorn-dev