The runtime difference might come from:

different datasets and thus a different number of samples
different print logic in your code
different training (including early stopping)
…

Without seeing code I can just speculate.