Grokking Concurrency in Python
Vote

0% completed

​

When Processes Pay Off

A pool of eight worker processes indexed Harvest's eight pages in 435 milliseconds. Indexing the same pages one at a time in the main process took 2,383 milliseconds, so the pool was 5.5 times faster. Then the pages were shortened to 500 words each. One at a time took 2 milliseconds, and a newly created pool took 277 milliseconds for the same work.

The difference is how much work each page carried compared with what it cost to start the processes and to hand them the work.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content