New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rhino over Duktape #82
Comments
Please do! Benchmarking on Android would be particularly useful since Rhino relies on the host VM whereas Duktape doesn’t. I doubt we’d switch regardless of the numbers because we’re optimizing for compactness and not throughput. |
for what I see, runing 1000x the same operation which is creating a js function that return 1 and calling it and counting the return value in java, so the whole java > js > java chain is 10% faster using Rhino. What's more, Rhino is 600ko once packaged, Duktape is 2mB. To finish, Rhino is java based, no JNI which reduce the crash potential drastically. DUKTAPE
RHINO
|
Neat! Which OS / device? Mind providing the specific numbers? Also what's the time elapsed to run a single operation? |
(I’m concerned about the potential time to initialize the JS engine. The 10% faster thing means less if it's 20% slower to initialize!) |
I'll probably publish a repo with the benchmarks (how to execute JS in Android). Anyways, here is a result. I should probably run some real average on the result and complete the JS code with real calculation (not just returning values). Anyways, the AndroidJSCore is pretty bad. |
It didn't count the initialize time, but based on my eye duktape and Rhino initialize time are pretty correct compared to webview for example. Moto X 2014 android 5.1 |
Cool. Looking forward to seeing your repo with benchmarks. |
Hi,
I was searching for a JS engine for Android and it seems that Rhino is ~10% more efficient than Duktape. What do you think about it? Maybe a real benchmark could be helpful...
The text was updated successfully, but these errors were encountered: