I'm trying to determine the reason why my code runs roughly four times slower than I thought it would.
In my code I'm iterating over a loop 100000 times. Once every 500 loops I print a line into a file (opening it in append mode, printing the line and closing it). Is it possible that on a decent computer (HPC cluster) this turns a 12h run into 48h run?
Hope my question is clear.