Javascript Performance Thread

Discussion about official Mozilla Firefox builds
Post Reply
User avatar
Erunno
Posts: 746
Joined: December 5th, 2008, 10:56 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by Erunno »

RyanJ wrote:You cannot only work from benchmarks. Benchmarks do not represent real world cases in most cases,


Unfortunately for FIrefox it also doesn't fare well on JavaScript-heavy real world cases. 280slides is noticeably faster on Mulproc and Opera in my experience destroys the competition on Google Maps (though this is probably in part due to their rendering library Vega). Or what about the SNES emulator written in JavaScript? It may not be your typical web application but it painfully shows the limitations of Firefox' current engine. TraceMonkey missed the market requirements in parts. The whole two JavaScript engines approach is also not without its wart like having two different assemblers now.
The previous signature has been removed again. Enjoy your month off, Erunno.
User avatar
Bluefang
Posts: 7857
Joined: August 10th, 2005, 2:55 pm
Location: Vermont
Contact:

Re: Firefox 4.0 TM and JM Performance Thread

Post by Bluefang »

In the Real World™ there's more to performance than just JS. There's page rendering, content re-flowing, DOM mutation, etc... It's not always clear where the performance bottleneck is.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
User avatar
Erunno
Posts: 746
Joined: December 5th, 2008, 10:56 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by Erunno »

That's true. The IE developers wrote a great article how individual sites stress different parts of a browser. Anyway, isn't it too early to discuss Firefox 4.0 JS performance as long as JägerMonkey including tracing integration hasn't landed yet? We can still complain if the performance doesn't get noticeably close to the release. :-)
The previous signature has been removed again. Enjoy your month off, Erunno.
User avatar
bogas04
Posts: 977
Joined: May 18th, 2010, 1:14 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by bogas04 »

All is about to land
bogas04.github.io
MacBook Air Mid 2013 |@bogas04
User avatar
Stifu
Posts: 984
Joined: July 13th, 2007, 8:02 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by Stifu »

Erunno wrote:Or what about the SNES emulator written in JavaScript?

It's a NES emu, and a Mozilla presentation video has recently been posted showing how Firefox (Minefield) plays it at 60 FPS...
User avatar
bogas04
Posts: 977
Joined: May 18th, 2010, 1:14 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by bogas04 »

it is JS-NES , and yeah they did show it playing @ nice frames (mario i guess , he even missed the power up :P)
But in large, they too got regressions ...

EDIT: its running @ 13~14 here :(
bogas04.github.io
MacBook Air Mid 2013 |@bogas04
User avatar
Erunno
Posts: 746
Joined: December 5th, 2008, 10:56 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by Erunno »

Stifu wrote:showing how Firefox (Minefield) plays it at 60 FPS...


Yes, I know. That's why I said it demonstrates some current limitations of TraceMonkey. :D

its running @ 13~14 here


Are you running a JägerMonkey-enabled build?
The previous signature has been removed again. Enjoy your month off, Erunno.
User avatar
Erunno
Posts: 746
Joined: December 5th, 2008, 10:56 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by Erunno »

bogas04 wrote:All is about to land


Latest blog post by one of the JS developers states that landing is planned for September the first.

Stifu wrote:showing how Firefox (Minefield) plays it at 60 FPS...


Yes, I know. That's why I said it demonstrates some current limitations of TraceMonkey. :D

its running @ 13~14 here


Are you running a JägerMonkey-enabled build?[/quote]
The previous signature has been removed again. Enjoy your month off, Erunno.
User avatar
bogas04
Posts: 977
Joined: May 18th, 2010, 1:14 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by bogas04 »

nope , was thinking it would run fine after TM landings

Yeah, it is supposed to land by Sept 1 , but after TM improvements , even Fatvals got r+s , so its not too long when we will be seeing bits of JM landing to trunk
bogas04.github.io
MacBook Air Mid 2013 |@bogas04
Solidstate89
Posts: 42
Joined: July 4th, 2010, 12:02 pm

Re: Firefox 4.0 TM and JM Performance Thread

Post by Solidstate89 »

bogas04 wrote:EDIT: its running @ 13~14 here :(


I usually get around 20FPS with the box zoomed in. Around 25 zoomed out.
Harsh86
Posts: 94
Joined: August 23rd, 2004, 4:34 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by Harsh86 »

Stifu wrote:
Erunno wrote:Or what about the SNES emulator written in JavaScript?

It's a NES emu, and a Mozilla presentation video has recently been posted showing how Firefox (Minefield) plays it at 60 FPS...


Is there a link to this video?
User avatar
Stifu
Posts: 984
Joined: July 13th, 2007, 8:02 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by Stifu »

Harsh86 wrote:Is there a link to this video?

Sorry, I can't find it back. Others saw it too, so they may know.
watervole02
Posts: 198
Joined: August 11th, 2006, 12:50 pm

Re: Firefox 4.0 TM and JM Performance Thread

Post by watervole02 »

Harsh86 wrote:
Stifu wrote:
Erunno wrote:Or what about the SNES emulator written in JavaScript?

It's a NES emu, and a Mozilla presentation video has recently been posted showing how Firefox (Minefield) plays it at 60 FPS...


Is there a link to this video?


I think it's this one. The NES part is at 2:40.

http://www.youtube.com/watch?v=GnYs2Q2pg1M
User avatar
bogas04
Posts: 977
Joined: May 18th, 2010, 1:14 am

Re: Firefox 4.0 TM and JM Performance Thread

Post by bogas04 »

Erunno wrote:Are you running a JägerMonkey-enabled build?


Can't find it @ http://ftp.mozilla.org/pub/mozilla.org/ ... key-linux/
bogas04.github.io
MacBook Air Mid 2013 |@bogas04
smoohta
Posts: 22
Joined: April 15th, 2010, 12:21 pm

Re: Firefox 4.0 TM and JM Performance Thread

Post by smoohta »

Well... in the video you posted you can see dmandelin's directory: http://people.mozilla.org/~dmandelin/Summit2010/ from which he opened the ants benchmark.
If you snoop in it, you can see there's a browsers folder with moo1.zip (supposedly the win32 JM moo build he was using in the presentation) and a "regular" firefox-3.7a5pre.en-US.win32.zip...
There's also an ants folder containing the cool ants benchmark :)

I've tried the moo build with the ants benchmark and it seems to work just like in the presentation, though I couldn't get JSNES to load due to some javascript errors... :(
Post Reply