ex05

command
v0.0.0-...-40c8e05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 6 Imported by: 0

README

Exercise 8.5 (P239)

Take an existing CPU-bound sequential program, such as the Mandelbrot program of Section 3.3 or the 3-D surface computation of Section 3.2, and execute its main loop in parallel using channels for communication. How much faster does it run on a multiprocessor machine? What is the optimal number of goroutines to use?

Results

Render 4096*4096 Mandelbrot

    NumCPU: 4
    Done no concurrency. Used: 5.144318122s
    Done. Worker Number: 1 Used: 5.060132177s
    Done. Worker Number: 2 Used: 2.820846794s
    Done. Worker Number: 3 Used: 2.781336072s
    Done. Worker Number: 4 Used: 2.579062955s

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL