Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] benchmark
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2011-05-27 09:25:33


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

On Thursday, May 26, 2011, Phil Bouchard wrote:
>
> You're right but make remains the same:
> 1)
> new:
> shared_ptr: 21234066 ns
> make:
> shared_ptr: 18122766 ns
>
> 2)
> make:
> shared_ptr: 18271141 ns
> new:
> shared_ptr: 13395539 ns
>

That's not what I see on my machine:

$ ./a.out
new:
shared_ptr: 15096947 ns
make:
shared_ptr: 10986592 ns

# recompile with different order

$ ./a.out
make:
shared_ptr: 14187251 ns
new:
shared_ptr: 11498070 ns

My cpu cores turn down their clock frequency when idle to save power, and I
don't know how long it takes to switch speeds. Maybe the cpu clock speed is
jumping from low to high speed while the benchmark is running.

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

iEYEARECAAYFAk3fpk0ACgkQ5vihyNWuA4V/BwCggGtUFvMgSOYdNtFgmQDeU8RU
aD0AnRRMZfgr0qXZREuDnFoVNbqTmDAU
=uPv7
-----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