Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time A Script

Status
Not open for further replies.

TamedTech

IS-IT--Management
May 3, 2005
998
GB
Hello guys,

I'm somewhat of an amature with when it comes to this kind of bash scripting, but i'm currently changing some of my code in a hope to enhance performance, and i'm looking for a way to activly monitor that performance increase.

The idea would be to run the two versions of the script, old and new, and see the execution time for each version.

Whats the best way to achieve this? I'd be looking to mesure this as accuratly as possible, down to milliseconds or somthing.

Thanks,

Rob
 
man time
man timex

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks mate, thats fantastic stuff, I'll give it a run through in the morning, I'm moving some variable storage out of flat text and into an array, i'm hoping it'll help performance.

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top