Worker Lab

Roc tasks counting primes and drawing the Mandelbrot set in Web Workers, while the page keeps its heartbeat.

Run

Workload

Jobs

Weight

Timeout (ms)

Weight sets each job's size: 2000 numbers to test, or 4 pixels along a tile's side. For a picture, Jobs is its number of strips (at most 60) and Weight its width, 128 pixels each (at most 16). At most 15 jobs are in flight at once (the program's bound of 16 requests, less the heartbeat's); the rest wait their turn. Changing a parameter during a run restarts it, and the old run's jobs stop.

Totals

Heartbeat

0

Done

0

Running

0

Waiting

0

Timed out, lost, failed or cancelled

0

Primes found

0

Tile bytes received

0

Checksum

no run

0 of 0 done

Picture

Choose "Draw the Mandelbrot set" and press Start.

Page clock ticks while drawing, one per 100 ms

–

Each strip is drawn by a worker and shown as soon as it arrives, so the picture fills in in the order the workers finish. The pool panel's links mount the page again with another pool size, which starts any drawing over. With the page's own thread (inline) no strip can be drawn: building a file needs a worker.

Refused at the in-flight bound and retried: 0