Compare times to run a program - Serial vs MPI

Hi,

I have a fortran program with serial and MPI version. I want to compare the time taken by these programs to run. I use ifort/gfortran compiler.

How to compare the time taken by each program to run? Is there any sample code for comparison?

Thanks,
rpd

Is the output of the "time" command not what you're looking for? You can execute it as:

time <executable_name> <args>