A DESCRIPTION OF THE REQUEST :
Using the B-Tree script available at
and running runnashorn.sh or runrhino.sh, each iteration is consistently slower in Nashorn than it is in Rhino. After disabling the calls into Java code, it is still slower.
Nashorn promised improved performance over Rhino. The main rationale behind Nashorn is benefiting from JSR-292: Dynamic Languages on the JVM aka InvokeDynamic. Since Nashorn uses this technology, which Rhino does not, it should be possible to achieve superior performance. Since superior performance has not been achieved, this bug is filed.
EXPECTED VERSUS ACTUAL BEHAVIOR :
Performance ideally as good as Rhino.
On my machine, Nashorn is consistently 1/3 slower than Rhino.