
You're suggestion was correct.
My optimizations were disabled and performance was suffering.
Thanks Peng!
-----Original Message-----
From: boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] On Behalf Of Xu, Peng
Sent: Wednesday, April 18, 2007 12:48 PM
To: boost-users@lists.boost.org; boost-users@lists.boost.org
Subject: Re: [Boost-users] [Pool][singleton_pool] Performance problem or
badusage?
What kind of optimization did you use? I modified your code to use my
timer, and here's the result
"
test(true)
loops=100000 realtime=15393us systime=0us usrtime=10000us
waittime=5393us avgRealtimePerLoop=0.15393us avgSystimePerLoop=0us
avgUsrtimePerLoop=0.1us avgWaittimePerLoop=0.05393us
test(false)
loops=100000 realtime=20022us systime=0us usrtime=20000us waittime=22us
avgRealtimePerLoop=0.20022us avgSystimePerLoop=0us
avgUsrtimePerLoop=0.2us avgWaittimePerLoop=0.00022us "
My compiler is icc 9.1.047, with O3 optimization flags
-----Original Message-----
From: boost-users-bounces@lists.boost.org on behalf of Aubrey, Jason
Sent: Wed 4/18/2007 12:12 PM
To: boost-users@lists.boost.org
Subject: [Boost-users] [Pool][singleton_pool] Performance problem or
badusage?
Hi,
I've created a helper class called MemoryPooled to help add pooling to
some of my classes; however, the performance seems slow by comparison to
non-pooled behavior. My code is shown below, I suspect I'm doing
something wrong but I don't see how it can be my class. Does anyone
have any idea?
-Jason
// Begin code --------------------------------------
#include