Boost logo

Boost :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-05-14 17:07:46


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 14 May 2008 16:47 pm, James Sutherland wrote:
>
> Any thoughts on what is chewing up the extra time then? Isn't the
> total time the correct measure here? Is the difference between the
> "real" time and the "system" time due to the join_all?

There is no extra time, or not much. You seem to be misinterpreting the
output of the "time" command. The real time is the elapsed time in the real
world. The sys plus user time is the time the all cpus spent executing the
program in total, which you would expect to remain roughly constant.

If 2 cpus each spent 1 second running the program in parallel, the real time
would be 1 second and the system plus user time would be 2 seconds.

If one cpu each spent 2 seconds running the program, the real time would be 2
seconds and the system plus user time would still be 2 seconds.

Oh, I also made my version loop 10 times as long, which is why it takes almost
10 seconds.

- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIK1Si5vihyNWuA4URAmKoAJ4i5fysGAa1zRhRXvnAJ/nAURq7XwCfUAiX
Q81qI8OKScguhGe9y92BY5U=
=kgXn
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk