First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
You can use the python timeit module. It will run the same piece of code multiple times (to attempt to compensate for changing conditions on your computer, e.g. caches being warmed up, other processes taking more time).
Why is it important for you to find the relative processing time between the two solution methods?