Thank your for explanations!! I would like to clarify a few moments. If I have 4 physical cores. The optimal number of paralell workers will be from 3 to 4 ?
I want to paralell several algorithms. The performance of those alogrithms from 5 to 7 seconds. When I divide this algorithm to chunks and create 3 or 4 workers, I get performance from 1.2 - 1.5 second per each chunk, but when I create more workers performance is getting slower. I create workers during startup and call them in runtime. I noticed that first worker call takes 0.4 - 0.6 second. Next calls take 0.05 seconds. пятница, 18 августа 2017 г., 15:50:45 UTC+3 пользователь [email protected] написал: > > Hello, > I tried to use several web worker in my project and noticed that when we > have more than one worker at the same time, they do not perform operations > in parallel mode. > Looks like they do operations step by step. > I compile code to WASM and run worker form C++ code with > emscripten_create_worker command. > For instance, one worker can complete operation, but I get callback only > when second worker is finished. > When I use five or six workers my UI is ok, but analyzing time I assume > that operations do not execute during the same time. > I want to use at the same time from 5 to 50 web workers and execute > operations in parallel mode and analyze callbacks when some worker is > ready. Is there any way to do this ? > Also emscripten_create_worker command ususally takes from one to two > seconds, but when I create other workers it takes from 0.1 to 0.2 seconds. > > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
