What would be the equivalent of this piece of Python code?

Can you explain further on “statistically not very robust”?

What will happen if I measure compilation time?