Code Ocean runs your code in a shared environment with other projects. We do our best to dynamically adjust the capacity of our cloud, to provide every capsule with identical resources on average. and across runs. Sometimes, the platform may see a high demand, in which case, runtime may go up.
There could also be stochastic elements of the code that cause this.