4 ms·
The performance of the CPU bound task and performing any CPU bound task on the main IO thread are 2 different things. The article was about the problem you face
by ankurdhama 10y ago
The performance of the CPU bound task and performing any CPU bound task on the main IO thread are 2 different things. The article was about the problem you face when you do CPU bound task on the main IO thread.
The WebWorkers and other approaches are about how to avoid using the IO thread to do CPU tasks. How the performance of those CPU tasks is depends on other factors. You can use WebAssembly or asm.js code to reach the performance of natively compiled code.