User:PSGarak/Sandbox/Parabolan War timings

From Fallen London Wiki (Staging)

Benchmark different implemenation strategies for the Parabolan War pages

/Reference using just variables

/Arrays using full array operations

/Nocamap like /arrays but removing the #camap operator

/Wildcardfree like arrays but separate val & choice arrays to avoid wildcard operator


Timings[edit]

Reference Arrays No #Camap No Wildcard
CPU time usage: 0.548 seconds

Real time usage: 0.588 seconds

CPU time usage: 0.448 seconds

Real time usage: 0.483 seconds

CPU time usage: 0.564 seconds

Real time usage: 0.601 seconds

CPU time usage: 0.672 seconds

Real time usage: 0.711 seconds

CPU time usage: 0.517 seconds

Real time usage: 0.571 seconds

CPU time usage: 0.536 seconds

Real time usage: 0.589 seconds

CPU time usage: 0.556 seconds

Real time usage: 0.593 seconds

CPU time usage: 0.724 seconds

Real time usage: 0.767 seconds

CPU time usage: 0.561 seconds

Real time usage: 0.597 seconds

CPU time usage: 0.550 seconds

Real time usage: 0.597 seconds

CPU time usage: 0.693 seconds

Real time usage: 0.730 seconds

CPU time usage: 0.640 seconds

Real time usage: 0.682 seconds

CPU time usage: 0.496 seconds

Real time usage: 0.526 seconds

CPU time usage: 0.574 seconds

Real time usage: 0.632 seconds

CPU time usage: 0.712 seconds

Real time usage: 0.783 seconds

CPU time usage: 0.628 seconds

Real time usage: 0.667 seconds

CPU time usage: 0.482 seconds

Real time usage: 0.517 seconds

CPU time usage: 0.592 seconds

Real time usage: 0.644 seconds

CPU time usage: 0.660 seconds

Real time usage: 0.704 seconds

CPU time usage: 0.848 seconds

Real time usage: 0.936 seconds