PowerShell offers an excellent way to measure command line execution times with “Measure-Command” and Script Block. With the example below, we run 10 repetitions to connect to SharePoint online and measure the response time in milliseconds. Cheers!

Video
Measure Performance – SharePoint Online (o365-speed) from Jeff Jones on Vimeo.
Source Code
Screenshots
