Get nashron work in opnjdk8
Marcus Lagergren
marcus.lagergren at oracle.com
Fri Feb 8 05:40:39 PST 2013
Can you tell us how you run it in JJS?
For the best current Nashorn performance, any build over Java8 b74 should be used, as it contains significant fixes to the inlining in the JVM.
You probably need to give any microbenchmark a few warmup rounds for performance to stabilize. If you only run one round, there will be too much noise and warmup issues for results to be meaningful. This is especially true with invoke dynamic based programs running on Java 8 now, as they tend to warm up slower than standard "Java" programs.
Running with the octane test harness in the Nashorn repo (modified to provide multiple rounds for VM warmup)
(after doing ant externals to get the benchmarks)
java -jar dist/nashorn.jar test/script/basic/run-octane.js -- test/script/external/octane/crypto.js --iterations 10 --verbose
I get ~2000 points on my machine, where Rhino gives me ~850 points.
/M
On Feb 8, 2013, at 2:29 PM, Harsha Kumara <harsz89 at gmail.com> wrote:
> Yeah the problem is i'm not quite sure whether I have configure the nashorn
> correctly.I had run crypto test in v8 bench mark test suit in jjs console
> it gives around 110ms to run the encryption operation where rhino just take
> around 31ms.My concern is how can I know whether I have correctly configure
> nashorn in my machine.
> Thanks!
>
> On Fri, Feb 8, 2013 at 6:52 PM, A. Sundararajan <
> sundararajan.athijegannathan at oracle.com> wrote:
>
>> [Please reply to list as it will be record for similar queries from others
>> as well]
>>
>> You said it is not as fast as rhino on your test. Is it possible to share
>> your test or reduced version of it demonstrating performance issue?
>>
>> thanks
>> -Sundar
>>
>>
>> On Friday 08 February 2013 06:15 PM, Harsha Kumara wrote:
>>
>>> Hi!
>>>
>>> I have pull jdk8 and build it.Then I build nashron after setting java
>>> home poiting to the jdk8.But ant build return with a javadoc error.I have
>>> the nashron jar which is build during the ant build.And I ran jjs
>>> executable with a some test it's not fast as rhino.I wonder whether I need
>>> to other configuration to get nashron into play?
>>> Thanks!
>>>
>>> On Fri, Feb 8, 2013 at 5:59 PM, A. Sundararajan <
>>> sundararajan.athijegannathan@**oracle.com<sundararajan.athijegannathan at oracle.com><mailto:
>>> sundararajan.**athijegannathan at oracle.com<sundararajan.athijegannathan at oracle.com>>>
>>> wrote:
>>>
>>> Hi,
>>>
>>> Nashorn has not yet hit the openjdk8 main repo. You need to pull
>>> nashorn forest for now:
>>>
>>> http://hg.openjdk.java.net/**nashorn/jdk8<http://hg.openjdk.java.net/nashorn/jdk8>
>>>
>>> It'll be some time before nashorn hits main jdk8 repo. But, you
>>> can pull the above forest in the interim and build it.
>>>
>>> -Sundar
>>>
>>>
>>> On Friday 08 February 2013 02:07 PM, Harsha Kumara wrote:
>>>
>>> Hi!
>>> I had tried to run some performance tests.But results are not
>>> impressive
>>> than I thought.I have build openjdk8 and set JAVA_HOME to
>>> it.Then I have
>>> build nashron.But when I run the jrunscript -q it still show
>>> the rhino as
>>> underline javascript engine.Then how can I configure it to use
>>> nashron?
>>> Thanks!
>>>
>>>
>>>
>>>
>>>
>>> --
>>> /Harsha Kumara/
>>> /Undergraduate/
>>> /Department of Computer Science and Engineering/
>>> /University of Moratuwa/
>>> /Sri Lanka./
>>>
>>
>>
>
>
> --
> *Harsha Kumara*
> *Undergraduate*
> *Department of Computer Science and Engineering*
> *University of Moratuwa*
> *Sri Lanka.*
More information about the nashorn-dev
mailing list