0

I have written a script to compare a few algorithms in Python, and I am timing each algorithm, to compare the total running time of each one. I wish to be as accurate as possible, that is, I want all of the algorithms to be ran using exactly (as much as possible) the same resources.

Running the script in GUI, I face the problem that Linux is checking for updates, running background processes e.t.c. So my concern is, that while running algorithm 1, linux is checking for updates, so it's not a fair comparison.

Any ideas on how I can control that? I am running Kubuntu.

XuUserAC
  • 101

0 Answers0