Code speed

bearophile bearophileHUGS at lycos.com
Tue Apr 13 18:00:08 PDT 2010


This is a little cleaned up version of the result of the profiling (no inling, final classes, -O -release):

   Func  
   Time  

7586124  std.random __uniform std.random __MersenneTwisterEngine
4040384  main
2408110  performance userReputationUpdate performance Rating
2299561  std.math __nextafter nextafter
2176746  std.contracts __enforce
2051276  std.conv __to
2006079  performance.objectReputationUpdate performance Rating
1898177  std.array __Appender performance Rating Appender __put performance Rating put performance Rating

It's a little disaster. As I have thought the Mersenne twister is taking up lot of time. And then the nextafter, the enforce, the to!, the appender...

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list