Subj : Re: Replacing SM with Rhino To : netscape.public.mozilla.jseng From : Matthew Mondor Date : Thu Jan 13 2005 12:43 am > Has anyone tried or done this before in their embedding/application. > APIs are different, of course, but we'd achieve better Java > integration and apparently speed. I read somewhere Rhino can be faster > 10:1 in some benchmark tests, using JIT compilation (not sure here if > 10:1 refers to Rhino X SM or RhinoJIT X RhinoNoJIT). What would the > major issues involved be? I'm no definitive authority about this, but I'm rather confident that this was comparing Rhino with a JIT and without one... I would be fairly surprised if Java performance reached that of compiled C programs (except perhaps in cases of very bad programming). The gap between Java and C sure decreased, but it's not yet reaching the same speeds in most cases (and although I often saw claims that it's starting to reach comparable performance to C++ in some cases with a JIT, well written C programs still yield better performance than C++ ones which need more runtime checks to implement the language. Possibly that with Jazelle and an arm processor that has Java bytecode support, applications written in C++ and Java could run with similar performance however... Although I couldn't test this yet personally If Rhino with a JIT exceeds SpiderMonkey performance, I sure would like to also know why, as well as the particular code used to test the benchmarks .