"""Script to run performance check."""
import time

from examples.game_of_life import GameOfLife, GOLExperiment
from xentica.utils.formatters import sizeof_fmt


models = [
    ("Conway's Life", GameOfLife, GOLExperiment),
]
num_steps = 10000


if __name__ == "__main__":
    for name, model, experiment in models:
        ca = model(experiment)
        start_time = time.time()
        for j in range(num_steps):
            ca.step()
            time_passed = time.time() - start_time
        speed = num_steps * ca.cells_num // time_passed
        print("%s: %s cells/s" % (name, sizeof_fmt(speed)))
        del ca

@@ -155,22 +155,22 @@
 f_fmt%0A%0A%0A
-models
+MODELS
  = %5B%0A   
@@ -218,25 +218,25 @@
 ent),%0A%5D%0A
-num_steps
+NUM_STEPS
  = 10000
@@ -304,14 +304,14 @@
  in 
-models
+MODELS
 :%0A  
@@ -395,25 +395,25 @@
 n range(
-num_steps
+NUM_STEPS
 ):%0A     
@@ -500,17 +500,17 @@
 d = 
-num_steps
+NUM_STEPS
  * c

Fix pylint issues in tests.performance (#30)