Ask Your Question

Revision history [back]

click to hide/show revision 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?