From: Joel VanderWerf Date: 2003-09-23T06:24:26+09:00 Subject: Re: Operator overloading Joel VanderWerf wrote: > user system total real > warmup 16.980000 2.850000 19.830000 ( 22.501646) > using *= and /= 0.400000 0.050000 0.450000 ( 0.462865) > using mul! and div! 0.160000 0.020000 0.180000 ( 0.181544) > using no ops 0.000000 0.000000 0.000000 ( 0.006473) Oops. I meant for all arrays to be 100x100, in which case the times are more reasonable: user system total real warmup 16.900000 2.740000 19.640000 ( 22.567519) using *= and /= 16.650000 2.820000 19.470000 ( 22.195233) using mul! and div! 5.360000 0.440000 5.800000 ( 6.051514) using no ops 0.010000 0.000000 0.010000 ( 0.006231) But there is still a factor of 3 improvement in mul! and div! over *= and /=.