I'm learning C and would like to get a sense for just how much faster some of my C code is than its python equivalent.
I'm running Ubuntu 12.04
From command line you can use "time" command. This will give you the execution time of that program in three separate mode (by default) - a. real time; b. user time; c. system time.
a. real time indicates how much time it took overall; b. user time indicates how much time it took executing at userspace c. system time indicates how much time it took executing at kernel space.
Above is the way to measure time from commnad line. You can also measure program execution time from in program - using system call like gettimeofday().