News for hackers. Stuff that matters.
Re:Mozilla's JM crosses Apple's Nitro threshold by buster on Thursday October 14, 2010 @04:09AM (#1790207)
I haven't seen the code but based on the description it's a benchmark that was originally in scheme and ported to javascript.. sounds fine to me. And "kernel simulation benchmark" may have a usecase too, just because you can't think of it, doesn't mean it isn't there ;) I can think of tests for scheduling, threading, asynchronous code, I/O when i think of "kernel simulation".

Again, people like to use V8benchmarks, when it's not made for browser comparisons. The fact that it's often used only shows that there is a lack of a real cross browser benchmar suite.

Re:Mozilla's JM crosses Apple's Nitro threshold by natmaster on Thursday October 14, 2010 @04:21AM (#1790236)
"...Florian Loitsch's Scheme2Js compiler"

No, Florian Loitsch isn't a human translator for hire - he wrote a compiler.

Re:Mozilla's JM crosses Apple's Nitro threshold by buster on Thursday October 14, 2010 @04:25AM (#1790244)
Yes, but the benchmark is not "how fast does V8 translate scheme to JS", it's "how fast does V8 run benchmarks in javascript that where translated from scheme some time ago". Atleast that's how i understand it.
Re:Mozilla's JM crosses Apple's Nitro threshold by _delirium on Thursday October 14, 2010 @04:40AM (#1790271)
That's true, but machine-generated code can be pretty nutty, depending on what exactly the Scheme2JS compiler does. It's legitimate JS code, but it might not be representative of what JS-written-in-JS looks like.
Re:Mozilla's JM crosses Apple's Nitro threshold by buster on Thursday October 14, 2010 @04:53AM (#1790297)
True, but i see that this is a valid testcase. For example GWT generates JS out of Java, so it might be useful to also benchmark machinegenerated JS.
Re:Mozilla's JM crosses Apple's Nitro threshold by ootachi on Thursday October 14, 2010 @10:52AM (#1791054)
I think it'd be useful to benchmark GWT-generated JS (and also Objective-J), but not Scheme2Js, which is rarely if ever used in practice. Compilers for different languages will emit code with completely different performance characteristics and feature usage patterns. (For instance, Objective-J particularly stresses the call site caching mechanisms in modern JavaScript engines with its "objc_msgSend" equivalent, since the indirect call in that function branches to so many different call sites.)
Re:Mozilla's JM crosses Apple's Nitro threshold by aidenn0 on Thursday October 14, 2010 @01:45PM (#1791814)
If you create a benchmark that measures X, it will be used to measure Y. It's the rule of benchmarks.