3 ms·
I'd be interested in checking it out. I've been using Rhino a lot recently, and I must say it's pretty awesome. You get all the functionality of pretty much an
by tlrobinson 19y ago
I'd be interested in checking it out.
I've been using Rhino a lot recently, and I must say it's pretty awesome. You get all the functionality of pretty much any Java library out there for free, without all the cruft of Java.
However, I did a quick benchmark of Rhino, Spidermonkey, and JavaScriptCore (WebKit's engine) and jscore beats the crap out of Spidermonkey and especially Rhino. I don't remember the exact numbers, but it was something like this:
JavaScriptCore: 0.5 seconds
Spidermonkey: 3 seconds
Rhino: 6 seconds
To be fair, the benchmark was very specific to the project I'm working on and involved a lot of regex and string manipulation. Rhino's regex implementation is known to be pretty slow.
- benreesman 19y agothe regex implementation is extremely slow, but in general it's quite reasonable. i wouldn't use it for number crunching, but for all the things that we've been using perl/ruby for it seems much faster (and it has jvm concurrency, which means we can thread really nicely which helps too). i'm going to be at web 2.0 next week but when i get back i'll put together a tarball that has some examples and stuff in it and send it along. the project is called 'jetstream' by the way. please send me an email to remind me. cheers, ben