Discover Packages
gitlab.com/luyang93/The-Go-Programming-Language
ch09
ex06
command
Version:
v0.0.0-...-5b51d85
Opens a new window with list of versions in this module.
Published: Mar 7, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Exercise 9.6 (P282)
Measure how the performance of a compute-bond parallel program (see Exercise 8.5) varies with GOMAXPROCS.
What is the optimal value of your computer?
How many CPUs does your computer have?
Result
With Intel I5 6200, 4 Cores, 2 worker threads is economical.
NumCPU: 4
Done no concurrency. Used: 5.101064434s
Done. Worker Number: 1 Used: 5.076399681s
Done. Worker Number: 2 Used: 2.735404646s
Done. Worker Number: 3 Used: 2.56978686s
Done. Worker Number: 4 Used: 2.522902384s
Expand ▾
Collapse ▴
Documentation
¶
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.