Hi Paul,

Check this blog post out.

http://www.jroller.com/greeneyed/entry/don_t_throw_your_scriptengines

He did some bench testing with some solutions.



On 6/11/2010 9:34 PM, Paul C. Bryan wrote:
Excuse me if this question has been asked before.

I performed a simple benchmark with interpreted and pre-compiled
scripts in Rhino, using the Rhino API (1.7R2) and using javax.script
(Java SE 6b18), evaluating a simple arithmetic expression "1+1".  I
was expecting similar performance between the two. I was surprised to
see that javax.script calls to a simple eval() call were taking an
order of magnitude longer than evaluating the same expression using
the Rhino API direct (pre-compiled vs. pre-compiled).

So, would this be expected or is it more likely I've done something
horribly wrong in my calls through javax.script? Perhaps the version
of Rhino that ships w. the JRE is older and slower?

Thanks in advance.

Paul

_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to