std.parallelism: Request for Review

Russel Winder russel at russel.org.uk
Sun Feb 27 04:43:34 PST 2011


On an ancient 32-bit dual core Mac Mini:

|> scons runall
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /home/Checkouts/Mercurial/SCons/bootstrap/src/script/scons.py runall
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
dmd -I. -I/Users/russel/lib/D -m32 -release -O -inline -c -ofeuclidean.o euclidean.d
gcc -o euclidean -m32 euclidean.o -L/Users/russel/lib.Darwin.ix86 -L/Users/russel/lib.Darwin.ix86/DMD2/lib32 -lparallelism -lphobos2 -lpthread -lm
dmd -I. -I/Users/russel/lib/D -m32 -release -O -inline -c -ofmatrixInversion.o matrixInversion.d
gcc -o matrixInversion -m32 matrixInversion.o -L/Users/russel/lib.Darwin.ix86 -L/Users/russel/lib.Darwin.ix86/DMD2/lib32 -lparallelism -lphobos2 -lpthread -lm
dmd -I. -I/Users/russel/lib/D -m32 -release -O -inline -c -ofmillionSqrt.o millionSqrt.d
gcc -o millionSqrt -m32 millionSqrt.o -L/Users/russel/lib.Darwin.ix86 -L/Users/russel/lib.Darwin.ix86/DMD2/lib32 -lparallelism -lphobos2 -lpthread -lm
dmd -I. -I/Users/russel/lib/D -m32 -release -O -inline -c -ofparallelSort.o parallelSort.d
gcc -o parallelSort -m32 parallelSort.o -L/Users/russel/lib.Darwin.ix86 -L/Users/russel/lib.Darwin.ix86/DMD2/lib32 -lparallelism -lphobos2 -lpthread -lm
dmd -I. -I/Users/russel/lib/D -m32 -release -O -inline -c -ofpipelining.o pipelining.d
gcc -o pipelining -m32 pipelining.o -L/Users/russel/lib.Darwin.ix86 -L/Users/russel/lib.Darwin.ix86/DMD2/lib32 -lparallelism -lphobos2 -lpthread -lm
runEverything(["runall"], ["euclidean", "matrixInversion", "millionSqrt", "parallelSort", "pipelining"])

========  euclidean  ============
Serial reduce:  1426 milliseconds.
Parallel reduce with 2 cores:  644 milliseconds.

========  matrixInversion  ============
Inverted a 256 x 256 matrix serially in 109 milliseconds.
Inverted a 256 x 256 matrix using 2 cores in 65 milliseconds.

========  millionSqrt  ============
Parallel benchmarks being done with 2 cores.
Did serial millionSqrt in 4122 milliseconds.
Did parallel foreach millionSqrt in 2094 milliseconds.
Did parallel map millionSqrt in 2110 milliseconds.

========  parallelSort  ============
Serial quick sort:  8547 milliseconds.
Parallel quick sort:  4654 milliseconds.

========  pipelining  ============
Did serial string -> float, euclid in 3021 milliseconds.
Did parallel string -> float, euclid with 2 cores in 1712 milliseconds.

scons: done building targets.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110227/7769d206/attachment.pgp>


More information about the Digitalmars-d mailing list