Bug 58406

Summary: IfController : Allow use of Nashorn Engine if available for JavaScript evaluation
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: 2.13   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Philippe Mouawad 2015-09-13 19:58:57 UTC
Since Java8, Nashorn engine provides Javascript language.

Benchmarks show the engine performs better than rhino (default used by JMeter):
- http://ariya.ofilabs.com/2014/03/nashorn-the-new-rhino-on-the-block.html

This enhancement will use as engine:
- Rhino if JAVA < 8
- Nashorn if JAVA >= 8


To keep backward compatibility, this enhancement will introduce this new property:
ifcontroller.use_rhino=false
Comment 1 Philippe Mouawad 2015-09-13 20:14:31 UTC
Author: pmouawad
Date: Sun Sep 13 20:12:47 2015
New Revision: 1702817

URL: http://svn.apache.org/r1702817
Log:
Bug 58406 - IfController : Use Nashorn Engine if available for JavaScript evaluation
Bugzilla Id: 58406

Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 Philippe Mouawad 2015-10-03 20:26:17 UTC
Property is renamed to:
javascript.use_rhino

It's default value will be true as of JMeter 2.14
Comment 3 Philippe Mouawad 2015-10-03 20:29:49 UTC
Author: pmouawad
Date: Sat Oct  3 20:27:45 2015
New Revision: 1706622

URL: http://svn.apache.org/viewvc?rev=1706622&view=rev
Log:
Bug 58406 - IfController : Allow use of Nashorn Engine if available for JavaScript evaluation
Apply what has been discussed at:
- http://mail-archives.apache.org/mod_mbox/jmeter-dev/201509.mbox/%3C55F9CB45.9040203%40internetallee.de%3E

Rename property and make Rhino still the default.
Add a note.

Bugzilla Id: 58406

Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java
    jmeter/trunk/xdocs/changes.xml
Comment 4 Philippe Mouawad 2015-10-17 13:49:23 UTC
Author: pmouawad
Date: Sat Oct 17 13:47:18 2015
New Revision: 1709167

URL: http://svn.apache.org/viewvc?rev=1709167&view=rev
Log:
Bug 58406 - IfController : Use Nashorn Engine if available for JavaScript evaluation
Apply same rules as for JavaScript function
Bugzilla Id: 58406

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java


Author: pmouawad
Date: Sat Oct 17 13:47:57 2015
New Revision: 1709168

URL: http://svn.apache.org/viewvc?rev=1709168&view=rev
Log:
Bug 58406 - IfController : Use Nashorn Engine if available for JavaScript evaluation
Make getInstance private
Bugzilla Id: 58406

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java