Thursday 25 July 2019

linux - Measure script execution time


In Bash shell, is there a simple way for me to monitor the time taken to run a script and output the time taken?



Answer



Yes.


 time script

Where script is the script to monitor the time for.


For instance, time find ~ will output something like this (Depending on the size of your home directory, that is):


real    0m49.139s
user 0m0.663s
sys 0m4.129s

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...