WebWorkers - Mandlebrot Tech Demo

This browser does not support the HTML5 Canvas.
1 2 4 8 16


This is a demonstration of how web workers can be used to run code in multiple threads.

Simply select the number of workers you wish to use, and the computer will re-compute the current Mandelbrot set with that number of workers.

Due to the overhead in passing data between the workers you are unlikely to notice any speed ups. In fact, it may even slow down! But my point is only to demonstrate the concepts!

Reset Zoom

You can also use alternate implementations of the workers. They use the same code, but have been processed offline by different settings on the Closure Compiler.

Basic Worker Closure Worker Advanced Closure