Jump to content

Profiling sandbox


Recommended Posts

More data

4 minutes ago, Stan` said:

As I don't like to go unbacked when making some claims, here are some stats from a 2v2 AI game of 29:05 min


{"Component":"Auras","FunctionName":"RemoveTemplateAura|teambonuses/cart_player_teambonus","TotalTime":0.6760000000000446,"Count":7,"Average":0.09657,"TurnAverageCount":0.0008022922636103152}
{"Component":"Auras","FunctionName":"RemoveTemplateAura|teambonuses/sele_player_teambonus","TotalTime":0.7779999999999632,"Count":7,"Average":0.11114,"TurnAverageCount":0.0008022922636103152}
{"Component":"Auras","FunctionName":"RemoveAura|structures/temple_heal","TotalTime":23.631999999692198,"Count":62,"Average":0.38116,"TurnAverageCount":0.0071060171919770775}
{"Component":"Auras","FunctionName":"ApplyAura|structures/temple_heal","TotalTime":36.10199999980978,"Count":55,"Average":0.6564,"TurnAverageCount":0.006303724928366763}
{"Component":"Auras","FunctionName":"RemoveAura|units/female_inspiration","TotalTime":2777.575000000241,"Count":8538,"Average":0.32532,"TurnAverageCount":0.978567335243553}
{"Component":"Auras","FunctionName":"ApplyAura|units/female_inspiration","TotalTime":2930.252999999917,"Count":8599,"Average":0.34077,"TurnAverageCount":0.9855587392550142}

Time is in ms. Turn time is 200ms. So that means it's in average called 5 times per second. (To add and 5 more times to remove) So I wouldn't call à 5s (in total for that aura) delay on a 30 min game slow, but it's not fast. Also notice those are the only auras that were called. mileage may vary. Also this is A24 so Spidermonkey is a bit better and I have a pretty decent rig


OS             : Win 10
CPU            : x86, Intel Core i7-6820HQ @ 2.70GHz (1x4x2), 2.71 GHz
Memory         : 32768 MiB; 7579 MiB free
Graphics Card  : NVIDIA Quadro M620/PCIe/SSE2

 

Link to comment
Share on other sites

{"Component":"Health","FunctionName":"ExecuteRegeneration","TotalTime":1.8259999998263083,"Count":29,"Average":0.06297,"TurnAverageCount":0.00332378223495702}
{"Component":"Barter","FunctionName":"ProgressTimeout","TotalTime":3.0849999999336433,"Count":67,"Average":0.04604,"TurnAverageCount":0.007679083094555874}
{"Component":"Trigger","FunctionName":"DoAction","TotalTime":14.219999999999345,"Count":1,"Average":14.22,"TurnAverageCount":0.00011461318051575932}
{"Component":"AttackDetection","FunctionName":"HandleTimeout","TotalTime":22.20600000010745,"Count":6216,"Average":0.00357,"TurnAverageCount":0.71243553008596}
{"Component":"GarrisonHolder","FunctionName":"HealTimeout","TotalTime":34.932000000058906,"Count":503,"Average":0.06945,"TurnAverageCount":0.05765042979942694}
{"Component":"Capturable","FunctionName":"TimerTick","TotalTime":37.416999999777545,"Count":292,"Average":0.12814,"TurnAverageCount":0.03346704871060172}
{"Component":"StatisticsTracker","FunctionName":"UpdateSequences","TotalTime":49.37099999987913,"Count":118,"Average":0.4184,"TurnAverageCount":0.013524355300859598}
{"Component":"ResourceTrickle","FunctionName":"Trickle","TotalTime":52.41299999988587,"Count":3490,"Average":0.01502,"TurnAverageCount":0.4}
{"Component":"BattleDetection","FunctionName":"TimerHandler","TotalTime":64.0520000008255,"Count":3773,"Average":0.01698,"TurnAverageCount":0.43243553008595986}
{"Component":"BuildingAI","FunctionName":"FireArrows","TotalTime":96.48299999882875,"Count":929,"Average":0.10386,"TurnAverageCount":0.10647564469914039}
{"Component":"Pack","FunctionName":"PackProgress","TotalTime":811.1559999997262,"Count":1095,"Average":0.74078,"TurnAverageCount":0.12550143266475644}
{"Component":"DelayedDamage","FunctionName":"MissileHit","TotalTime":4515.770000000877,"Count":6767,"Average":0.66732,"TurnAverageCount":0.7755873925501432}
{"Component":"ProductionQueue","FunctionName":"ProgressTimeout","TotalTime":7443.771000001156,"Count":6729,"Average":1.10622,"TurnAverageCount":0.7712320916905444}
{"Component":"UnitAI","FunctionName":"TimerHandler","TotalTime":34888.44400000893,"Count":155744,"Average":0.22401,"TurnAverageCount":17.85031518624642}

With GetMicroseconds, without any optimizations same replayed match (since they were ais it's different but I believe the data is still good.

Link to comment
Share on other sites

  • Stan` locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...