Limiting your CPU and Memory Usage

Yesterday I wrote about how to use a very simple timing context manager to measure how much time your python code/functions take. There might be times when you want to restrict how long your code executes. Python’s resource module in the standard library gives you an easy way to do that and more.

Read more

Timing your Python Code

There are many times when you would want to see how much time your program takes to execute. The easiest way to do it on a unix system is to use the time command before running the program.

Read more