Difference between revisions of "Thread:Talk:XanderCat/Initialization Code Runtime Reduction Effort"

From Robowiki
Jump to navigation Jump to search
(New thread: Initialization Code Runtime Reduction Effort)
 
(updated performance table)
 
Line 3: Line 3:
 
In all I ran averages against 10 seasons.   
 
In all I ran averages against 10 seasons.   
  
12.2 is XanderCat 12.2, while 12.3 is the development version of XanderCat 12.3 with reductions to initialization by using static initialization blocks and whatever other improvements I can make.  I don't have stats for 12.3 yet; hopefully I can edit this post once I have them.
+
12.2 is XanderCat 12.2, while 12.3 is the development version of XanderCat 12.3 with whatever CPU performance improvements I can make.  Originally I was going to focus on trying to improve initialization, but since turn 0 apparently wasn't getting skipped, I decided to focus on drive and gun improvements instead.
  
 
{|border="1" style="text-align: right"
 
{|border="1" style="text-align: right"
Line 21: Line 21:
 
| 0.454
 
| 0.454
 
| 0.478
 
| 0.478
|  
+
| 0.459
|  
+
| 0.469
 
|-
 
|-
 
| Construction AVG
 
| Construction AVG
 
| 1.304
 
| 1.304
 
| 1.353
 
| 1.353
|  
+
| 1.306
|  
+
| 1.310
 
|-
 
|-
 
| Load Stats AVG
 
| Load Stats AVG
 
| 3.730
 
| 3.730
 
| 3.686
 
| 3.686
|
+
| 3.690
|
+
| 3.321
 
|-
 
|-
 
| Drive AVG
 
| Drive AVG
 
| 0.478
 
| 0.478
 
| 0.031
 
| 0.031
|  
+
| 0.299
|  
+
| 0.016
 
|-
 
|-
 
| Drive P1
 
| Drive P1
 
| 12.51
 
| 12.51
 
| 5.25
 
| 5.25
|  
+
| 7.34
|  
+
| 3.82
 
|-
 
|-
 
| Drive P2
 
| Drive P2
 
| 11.91
 
| 11.91
 
| 4.70
 
| 4.70
|  
+
| 6.95
|  
+
| 3.18
 
|-
 
|-
 
| Drive P3
 
| Drive P3
 
| 11.46
 
| 11.46
 
| 4.55
 
| 4.55
|  
+
| 6.81
|  
+
| 2.99
 
|-
 
|-
 
| Gun AVG
 
| Gun AVG
 
| 0.465
 
| 0.465
 
| 0.153
 
| 0.153
|  
+
| 0.267
|  
+
| 0.082
 
|-
 
|-
 
| Gun P1
 
| Gun P1
 
| 7.12
 
| 7.12
 
| 7.17
 
| 7.17
|  
+
| 5.23
|  
+
| 5.84
 
|-
 
|-
 
| Gun P2
 
| Gun P2
 
| 6.03
 
| 6.03
 
| 5.13
 
| 5.13
|  
+
| 4.44
|  
+
| 4.09
 
|-
 
|-
 
| Gun P3
 
| Gun P3
 
| 5.65
 
| 5.65
 
| 4.26
 
| 4.26
|  
+
| 3.77
|  
+
| 2.66
 
|-
 
|-
 
| Radar AVG
 
| Radar AVG
 
| 0.0019
 
| 0.0019
 
| 0.0018
 
| 0.0018
|  
+
| 0.0018
|  
+
| 0.0018
 
|-
 
|-
 
| Radar P1
 
| Radar P1
 
| 0.10
 
| 0.10
 
| 0.28
 
| 0.28
|  
+
| 0.07
|  
+
| 0.35
 
|-
 
|-
 
| Radar P2
 
| Radar P2
 
| 0.06
 
| 0.06
 
| 0.14
 
| 0.14
|  
+
| 0.05
|  
+
| 0.05
 
|-
 
|-
 
| Radar P3
 
| Radar P3
 
| 0.04
 
| 0.04
 
| 0.04
 
| 0.04
|  
+
| 0.03
|  
+
| 0.04
 
|}
 
|}

Latest revision as of 06:04, 17 February 2013

Here I am going to post information on CPU performance of configuration, construction, drive, gun, and radar. Configuration is one time setting of parameters at beginning of first round. Construction is construction of the scenarios, drives, guns, etc. and loading them into my component chain, also a one time event at beginning of first round. Load stats is loading the previous set of statistics from disk so they can be updated and written back out at the end of the battle. Drive, gun, and radar times are averages and peaks over every tick for the entire battle.

In all I ran averages against 10 seasons.

12.2 is XanderCat 12.2, while 12.3 is the development version of XanderCat 12.3 with whatever CPU performance improvements I can make. Originally I was going to focus on trying to improve initialization, but since turn 0 apparently wasn't getting skipped, I decided to focus on drive and gun improvements instead.

12.2 Normal 12.2 Shielding 12.3 Normal 12.3 Shielding
Opponent Tron Virus Tron Virus
Configure AVG 0.454 0.478 0.459 0.469
Construction AVG 1.304 1.353 1.306 1.310
Load Stats AVG 3.730 3.686 3.690 3.321
Drive AVG 0.478 0.031 0.299 0.016
Drive P1 12.51 5.25 7.34 3.82
Drive P2 11.91 4.70 6.95 3.18
Drive P3 11.46 4.55 6.81 2.99
Gun AVG 0.465 0.153 0.267 0.082
Gun P1 7.12 7.17 5.23 5.84
Gun P2 6.03 5.13 4.44 4.09
Gun P3 5.65 4.26 3.77 2.66
Radar AVG 0.0019 0.0018 0.0018 0.0018
Radar P1 0.10 0.28 0.07 0.35
Radar P2 0.06 0.14 0.05 0.05
Radar P3 0.04 0.04 0.03 0.04