News for hackers. Stuff that matters.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by The_rationalist on Friday August 30, 2019 @12:52PM (#20840289)
It is mostly par with Chrome now pretty much everywhere. Well browsing most website should not trigger lag in any browsers. But if we look at benchmarcks: https://www.phoronix.com/scan.php?page=news_item&px=Firefox-...
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by pcwalton on Friday August 30, 2019 @02:43PM (#20841345)
Baseline interpreter is a good example of doing things that help most Web pages instead of benchmarks. One of the major things that ARES-6 and other benchmarks test is whether generators are JIT'd, for example. This doesn't really help Web pages, as it's a rarely used feature at present and even rarer in hot loops.

SpiderMonkey should get around to jitting generators, but I have a hard time blaming the team for focusing on real-world improvements first.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by The_rationalist on Friday August 30, 2019 @04:29PM (#20842393)
Pcwalton! While I agree that most synthetic benchmarcks are mostly not representative for the real world, there is a benchmarck suite for real world.

That is benchmarcking most used ALEXA websites. It's named TP 5 and TP6, mozilla use it internally (e. G to measure progress on stylo) Why is the real world (TP5/6) not public?? Phoronix has never used it, mozilla has never publicly published benchmarcks. I guess they favor chromium but I've never seen all results only the few mozillians posted on bugzilla. Let the world know, publish the results, even if it favor chromium. Anyway the mainstream will never be affected by that public information (most people have difficulties discerning a search engine from the concept of browser, let alone talking about benchmarcks)

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by fabrice_d on Friday August 30, 2019 @06:02PM (#20843132)
Did you look at the raptor dashboards? Let me help you: https://treeherder.mozilla.org/perf.html#/graphs?timerange=2...
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by The_rationalist on Saturday August 31, 2019 @01:26PM (#20847601)
Thank you! But without being able to compare it with chromium the results are meaningless to my brain.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by pcwalton on Saturday August 31, 2019 @01:44PM (#20847705)
You're free to port it to Chromium and run it yourself.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by yusukesuzuki on Friday August 30, 2019 @08:20PM (#20843897)
JSC's async-await is constructed on the generator's mechanism so that high performance generator is critical for all the web code using async functions. Not sure how SpiderMonkey is doing.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by littlestymaar on Friday August 30, 2019 @11:50PM (#20844522)
As the gp said, async/await is rarely used in hot loops, so it would probably never get jit-ed in a real webpage.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by yusukesuzuki on Saturday August 31, 2019 @08:16AM (#20845859)
I don’t agree given that async iterator can be iterated. But I’m ok if SpiderMonkey folks thinks so ;)
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by littlestymaar on Saturday August 31, 2019 @12:04PM (#20847111)
Async is mainly useful for asynchronous operations, like network requests if file system access. If used in this context, the loop cannot be "hot"…

Maybe there are people (ab)using the async stuf do do something else, but at least it's not really common.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by pcwalton on Saturday August 31, 2019 @01:23PM (#20847587)
I'm sure SM will get around to jitting that stuff at some point. All I'm saying is that Baseline Interpreter gives users bigger wins right now.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by the_duke on Friday August 30, 2019 @12:59PM (#20840362)
Amended to "feels on par".
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by bradknowles on Friday August 30, 2019 @04:35PM (#20842447)
Does anyone know if those same phoronix tests have been run against the new Firefox 70 Nightly or Developer Edition apps?

I'd be curious to see how 68 versus 69 versus 70 compare.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by The_rationalist on Friday August 30, 2019 @05:20PM (#20842827)
I don't think it has yet been done. But as you probably noticed he tested with webrender too
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by Caspy7 on Friday August 30, 2019 @08:19PM (#20843891)
I mean, WebRender and spidermonkey are two separate things.