| Richard's profileRichard Siddaway's BlogPhotosBlogLists | Help |
|
March 31 Measure-CommandWorking on a script to compare two lists of computer names (plus some other stuff) I wasn’t happy with the performance I was getting from my first try. I started to experiment but needed to measure the time the scripts took. Enter Measure-Command. Measure-Comand {./script.ps1} Output is a timespan object that gives the total execution time of the script block. It doesn’t have to be a full script – any valid script block will work. Normally I don’t worry too much about performance but in this case it just felt the approach was too slow. Keep Measure-Command in mind for during your testing
Technorati Tags: PowerShell,CTP3 TrackbacksThe trackback URL for this entry is: http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2199.trak Weblogs that reference this entry
|
|
|