2009-10-03 71 views

回答

6
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– 
performancetests.Constructors (5 iterations, 5,000,000 loops through each)        
Player version: MAC 10,0,32,18 (debug) 
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– 
method...................................................ttl ms...avg ms 
instanceAsObjectConstructor        9516 1903.20 
instanceBracketConstructor         6941 1388.20 
objectDotConstructor          9916 1983.20 
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– 

我用Grant Skinner's AS3 Performance test harness得到了這些結果。

+0

這必須是因爲instanceBracketConstructor是唯一不會投射實例的人。否則這個結果會嚇到我。 – dlamblin 2009-10-04 22:41:21

相關問題