You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Marcus Fritze <ma...@googlemail.com> on 2014/02/04 16:38:17 UTC

why are my Worker in Firefox so slow?

Hi,

Ok, I have a main application and a worker.

The worker is for very CPU intensive work. But I have a lot of "work" to do at the same time. 
So I run multiple worker (actually the same Worker-class) at the same time.

In Chrome everything is working fine and the work is done in some seconds.
Chrome starts a "Google Chrome Helper" process for every worker.

But In Firefox, it seems there is only one "Firefox Plugin Process" and when I have 3 or 4 worker 
at the same time, the main app slows down.

Any suggestions?

Info: my system Mac OS X 10.9 and the latest Firefox and Flash Player 12

Thanks

Marcus Fritze

Re: why are my Worker in Firefox so slow?

Posted by Marcus Fritze <ma...@googlemail.com>.
Thanks for all your responses.

Am 04.02.2014 um 18:38 schrieb Maurice Amsellem <ma...@systar.com>:

> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Worker.html
> 
> " Adobe recommends that you do not use more than one or two background workers in a typical scenario."
> 
> Maybe there is a fundamental reason for that ?
> 
> Maurice 
> 
> -----Message d'origine-----
> De : Sean Thayne [mailto:sean@skyseek.com] 
> Envoyé : mardi 4 février 2014 18:25
> À : users@flex.apache.org
> Objet : Re: why are my Worker in Firefox so slow?
> 
> Ya, in my tests, it's much better to run 1 or 2 workers max.
> 
> ~Sean
> 
> <http://www.skyseek.com>
> class *Sean_Thayne*
>    extends Developer {
>        public $skype = "sthayne23";
>        public $gTalk = "sean@skyseek.com";
>        public $url   = "www.skyseek.com";
> }
> 
> 
> On Tue, Feb 4, 2014 at 10:23 AM, Alex Harui <ah...@adobe.com> wrote:
> 
>> Are the numbers the same for both FF and Chrome?  Chrome may just have 
>> better optimization for workers.  Chrome may have discovered that 
>> sharing between multiple processes is better than multi-threading for Workers.
>> 
>> I'm not an expert on Workers and multi-threading, but I always thought 
>> that there is little advantage, and potential a disadvantage, of 
>> running more threads of equal priority than there is CPU/Core availability.
>> 
>> FF is known for having overhead from other FF plugins.  The difference 
>> in performance you are seeing could be from that as well.
>> 
>> HTH,
>> -Alex
>> 
>> On 2/4/14 8:02 AM, "Marcus Fritze" <ma...@googlemail.com> wrote:
>> 
>>> Thanks for the quick response.
>>> 
>>> Activity Monitor shows mostly 175 - 185 % and sometimes a max of 196 %.
>>> 
>>> But my overall CPU usage is about 22%.
>>> 
>>> Am 04.02.2014 um 16:51 schrieb Alex Harui <ah...@adobe.com>:
>>> 
>>>> What does the os tools show for cpu usage?  Maybe FF doesn't spread 
>>>> work to more than one or two cores.
>>>> 
>>>> -Alex
>>>> 
>>>> On 2/4/14 7:38 AM, "Marcus Fritze" <ma...@googlemail.com>
>> wrote:
>>>> 
>>>>> Hi,
>>>>> 
>>>>> Ok, I have a main application and a worker.
>>>>> 
>>>>> The worker is for very CPU intensive work. But I have a lot of "work"
>>>>> to
>>>>> do at the same time.
>>>>> So I run multiple worker (actually the same Worker-class) at the 
>>>>> same  time.
>>>>> 
>>>>> In Chrome everything is working fine and the work is done in some 
>>>>> seconds.
>>>>> Chrome starts a "Google Chrome Helper" process for every worker.
>>>>> 
>>>>> But In Firefox, it seems there is only one "Firefox Plugin 
>>>>> Process" and when I have 3 or 4 worker at the same time, the main 
>>>>> app slows down.
>>>>> 
>>>>> Any suggestions?
>>>>> 
>>>>> Info: my system Mac OS X 10.9 and the latest Firefox and Flash 
>>>>> Player
>>>>> 12
>>>>> 
>>>>> Thanks
>>>>> 
>>>>> Marcus Fritze
>>>> 
>>> 
>> 
>> 


RE: why are my Worker in Firefox so slow?

Posted by Maurice Amsellem <ma...@systar.com>.
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Worker.html

" Adobe recommends that you do not use more than one or two background workers in a typical scenario."

Maybe there is a fundamental reason for that ?

Maurice 

-----Message d'origine-----
De : Sean Thayne [mailto:sean@skyseek.com] 
Envoyé : mardi 4 février 2014 18:25
À : users@flex.apache.org
Objet : Re: why are my Worker in Firefox so slow?

Ya, in my tests, it's much better to run 1 or 2 workers max.

~Sean

<http://www.skyseek.com>
class *Sean_Thayne*
    extends Developer {
        public $skype = "sthayne23";
        public $gTalk = "sean@skyseek.com";
        public $url   = "www.skyseek.com";
}


On Tue, Feb 4, 2014 at 10:23 AM, Alex Harui <ah...@adobe.com> wrote:

> Are the numbers the same for both FF and Chrome?  Chrome may just have 
> better optimization for workers.  Chrome may have discovered that 
> sharing between multiple processes is better than multi-threading for Workers.
>
> I'm not an expert on Workers and multi-threading, but I always thought 
> that there is little advantage, and potential a disadvantage, of 
> running more threads of equal priority than there is CPU/Core availability.
>
> FF is known for having overhead from other FF plugins.  The difference 
> in performance you are seeing could be from that as well.
>
> HTH,
> -Alex
>
> On 2/4/14 8:02 AM, "Marcus Fritze" <ma...@googlemail.com> wrote:
>
> >Thanks for the quick response.
> >
> >Activity Monitor shows mostly 175 - 185 % and sometimes a max of 196 %.
> >
> >But my overall CPU usage is about 22%.
> >
> >Am 04.02.2014 um 16:51 schrieb Alex Harui <ah...@adobe.com>:
> >
> >> What does the os tools show for cpu usage?  Maybe FF doesn't spread 
> >> work to more than one or two cores.
> >>
> >> -Alex
> >>
> >> On 2/4/14 7:38 AM, "Marcus Fritze" <ma...@googlemail.com>
> wrote:
> >>
> >>> Hi,
> >>>
> >>> Ok, I have a main application and a worker.
> >>>
> >>> The worker is for very CPU intensive work. But I have a lot of "work"
> >>>to
> >>> do at the same time.
> >>> So I run multiple worker (actually the same Worker-class) at the 
> >>>same  time.
> >>>
> >>> In Chrome everything is working fine and the work is done in some 
> >>>seconds.
> >>> Chrome starts a "Google Chrome Helper" process for every worker.
> >>>
> >>> But In Firefox, it seems there is only one "Firefox Plugin 
> >>> Process" and when I have 3 or 4 worker at the same time, the main 
> >>> app slows down.
> >>>
> >>> Any suggestions?
> >>>
> >>> Info: my system Mac OS X 10.9 and the latest Firefox and Flash 
> >>>Player
> >>>12
> >>>
> >>> Thanks
> >>>
> >>> Marcus Fritze
> >>
> >
>
>

Re: why are my Worker in Firefox so slow?

Posted by Sean Thayne <se...@skyseek.com>.
Ya, in my tests, it's much better to run 1 or 2 workers max.

~Sean

<http://www.skyseek.com>
class *Sean_Thayne*
    extends Developer {
        public $skype = "sthayne23";
        public $gTalk = "sean@skyseek.com";
        public $url   = "www.skyseek.com";
}


On Tue, Feb 4, 2014 at 10:23 AM, Alex Harui <ah...@adobe.com> wrote:

> Are the numbers the same for both FF and Chrome?  Chrome may just have
> better optimization for workers.  Chrome may have discovered that sharing
> between multiple processes is better than multi-threading for Workers.
>
> I'm not an expert on Workers and multi-threading, but I always thought
> that there is little advantage, and potential a disadvantage, of running
> more threads of equal priority than there is CPU/Core availability.
>
> FF is known for having overhead from other FF plugins.  The difference in
> performance you are seeing could be from that as well.
>
> HTH,
> -Alex
>
> On 2/4/14 8:02 AM, "Marcus Fritze" <ma...@googlemail.com> wrote:
>
> >Thanks for the quick response.
> >
> >Activity Monitor shows mostly 175 - 185 % and sometimes a max of 196 %.
> >
> >But my overall CPU usage is about 22%.
> >
> >Am 04.02.2014 um 16:51 schrieb Alex Harui <ah...@adobe.com>:
> >
> >> What does the os tools show for cpu usage?  Maybe FF doesn't spread work
> >> to more than one or two cores.
> >>
> >> -Alex
> >>
> >> On 2/4/14 7:38 AM, "Marcus Fritze" <ma...@googlemail.com>
> wrote:
> >>
> >>> Hi,
> >>>
> >>> Ok, I have a main application and a worker.
> >>>
> >>> The worker is for very CPU intensive work. But I have a lot of "work"
> >>>to
> >>> do at the same time.
> >>> So I run multiple worker (actually the same Worker-class) at the same
> >>> time.
> >>>
> >>> In Chrome everything is working fine and the work is done in some
> >>>seconds.
> >>> Chrome starts a "Google Chrome Helper" process for every worker.
> >>>
> >>> But In Firefox, it seems there is only one "Firefox Plugin Process" and
> >>> when I have 3 or 4 worker
> >>> at the same time, the main app slows down.
> >>>
> >>> Any suggestions?
> >>>
> >>> Info: my system Mac OS X 10.9 and the latest Firefox and Flash Player
> >>>12
> >>>
> >>> Thanks
> >>>
> >>> Marcus Fritze
> >>
> >
>
>

Re: why are my Worker in Firefox so slow?

Posted by Alex Harui <ah...@adobe.com>.
Are the numbers the same for both FF and Chrome?  Chrome may just have
better optimization for workers.  Chrome may have discovered that sharing
between multiple processes is better than multi-threading for Workers.

I'm not an expert on Workers and multi-threading, but I always thought
that there is little advantage, and potential a disadvantage, of running
more threads of equal priority than there is CPU/Core availability.

FF is known for having overhead from other FF plugins.  The difference in
performance you are seeing could be from that as well.

HTH,
-Alex

On 2/4/14 8:02 AM, "Marcus Fritze" <ma...@googlemail.com> wrote:

>Thanks for the quick response.
>
>Activity Monitor shows mostly 175 - 185 % and sometimes a max of 196 %.
>
>But my overall CPU usage is about 22%.
>
>Am 04.02.2014 um 16:51 schrieb Alex Harui <ah...@adobe.com>:
>
>> What does the os tools show for cpu usage?  Maybe FF doesn't spread work
>> to more than one or two cores.
>> 
>> -Alex
>> 
>> On 2/4/14 7:38 AM, "Marcus Fritze" <ma...@googlemail.com> wrote:
>> 
>>> Hi,
>>> 
>>> Ok, I have a main application and a worker.
>>> 
>>> The worker is for very CPU intensive work. But I have a lot of "work"
>>>to
>>> do at the same time.
>>> So I run multiple worker (actually the same Worker-class) at the same
>>> time.
>>> 
>>> In Chrome everything is working fine and the work is done in some
>>>seconds.
>>> Chrome starts a "Google Chrome Helper" process for every worker.
>>> 
>>> But In Firefox, it seems there is only one "Firefox Plugin Process" and
>>> when I have 3 or 4 worker
>>> at the same time, the main app slows down.
>>> 
>>> Any suggestions?
>>> 
>>> Info: my system Mac OS X 10.9 and the latest Firefox and Flash Player
>>>12
>>> 
>>> Thanks
>>> 
>>> Marcus Fritze
>> 
>


Re: why are my Worker in Firefox so slow?

Posted by Marcus Fritze <ma...@googlemail.com>.
Thanks for the quick response.

Activity Monitor shows mostly 175 - 185 % and sometimes a max of 196 %.

But my overall CPU usage is about 22%.

Am 04.02.2014 um 16:51 schrieb Alex Harui <ah...@adobe.com>:

> What does the os tools show for cpu usage?  Maybe FF doesn't spread work
> to more than one or two cores.
> 
> -Alex
> 
> On 2/4/14 7:38 AM, "Marcus Fritze" <ma...@googlemail.com> wrote:
> 
>> Hi,
>> 
>> Ok, I have a main application and a worker.
>> 
>> The worker is for very CPU intensive work. But I have a lot of "work" to
>> do at the same time.
>> So I run multiple worker (actually the same Worker-class) at the same
>> time.
>> 
>> In Chrome everything is working fine and the work is done in some seconds.
>> Chrome starts a "Google Chrome Helper" process for every worker.
>> 
>> But In Firefox, it seems there is only one "Firefox Plugin Process" and
>> when I have 3 or 4 worker
>> at the same time, the main app slows down.
>> 
>> Any suggestions?
>> 
>> Info: my system Mac OS X 10.9 and the latest Firefox and Flash Player 12
>> 
>> Thanks
>> 
>> Marcus Fritze
> 


Re: why are my Worker in Firefox so slow?

Posted by Alex Harui <ah...@adobe.com>.
What does the os tools show for cpu usage?  Maybe FF doesn't spread work
to more than one or two cores.

-Alex

On 2/4/14 7:38 AM, "Marcus Fritze" <ma...@googlemail.com> wrote:

>Hi,
>
>Ok, I have a main application and a worker.
>
>The worker is for very CPU intensive work. But I have a lot of "work" to
>do at the same time.
>So I run multiple worker (actually the same Worker-class) at the same
>time.
>
>In Chrome everything is working fine and the work is done in some seconds.
>Chrome starts a "Google Chrome Helper" process for every worker.
>
>But In Firefox, it seems there is only one "Firefox Plugin Process" and
>when I have 3 or 4 worker
>at the same time, the main app slows down.
>
>Any suggestions?
>
>Info: my system Mac OS X 10.9 and the latest Firefox and Flash Player 12
>
>Thanks
>
>Marcus Fritze


Re: why are my Worker in Firefox so slow?

Posted by Marcus Fritze <ma...@googlemail.com>.
I think I was wrong, it seems that Chrome doesn't start a new process for every worker.
But Chrome is still faster.

Am 04.02.2014 um 16:38 schrieb Marcus Fritze <ma...@googlemail.com>:

> Hi,
> 
> Ok, I have a main application and a worker.
> 
> The worker is for very CPU intensive work. But I have a lot of "work" to do at the same time. 
> So I run multiple worker (actually the same Worker-class) at the same time.
> 
> In Chrome everything is working fine and the work is done in some seconds.
> Chrome starts a "Google Chrome Helper" process for every worker.
> 
> But In Firefox, it seems there is only one "Firefox Plugin Process" and when I have 3 or 4 worker 
> at the same time, the main app slows down.
> 
> Any suggestions?
> 
> Info: my system Mac OS X 10.9 and the latest Firefox and Flash Player 12
> 
> Thanks
> 
> Marcus Fritze