For me this script gives in Rhino 5 the result:
Command: RunPythonScript
Time to fill matrix = 5.62610626221
Command: RunPythonScript
Time to fill matrix = 6.01433563232
Command: RunPythonScript
Time to fill matrix = 5.74410247803
Command: _CommandHistory
Command: RunPythonScript
Time to fill matrix = 5.95180511475
Command: RunPythonScript
Time to fill matrix = 5.86974334717
and in Rhino BETA
Command: RunPythonScript
Time to fill matrix = 4.31267547607
Command: RunPythonScript
Time to fill matrix = 4.32111358643
Command: RunPythonScript
Time to fill matrix = 4.16295623779
Command: RunPythonScript
Time to fill matrix = 4.35050964355
Command: RunPythonScript
Time to fill matrix = 4.25603485107
Running on an i7-7700 @ 3.6GHz, 16GB RAM, Windows 10 (1709)