Measure-PnPResponseTime

Gets statistics on response time for the specified endpoint by sending probe requests

Syntax

Measure-PnPResponseTime
       [-Url <DiagnosticEndpointPipeBind>]
                              [-Count <UInt32>]
                              [-WarmUp <UInt32>]
                              [-Timeout <UInt32>]
                              [-Histogram <UInt32>]
                              [-Mode <MeasureResponseTimeMode>]
                              [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Measure-PnPResponseTime -Count 100 -Timeout 20

Calculates statistics on sequence of 100 probe requests, sleeps 20ms between probes

------------------EXAMPLE 2------------------

Measure-PnPResponseTime "/Pages/Test.aspx" -Count 1000

Calculates statistics on response time of Test.aspx by sending 1000 requests with default sleep time between requests

------------------EXAMPLE 3------------------

Measure-PnPResponseTime $web -Count 1000 -WarmUp 10 -Histogram 20 -Timeout 50 | Select -expa Histogram | % {$_.GetEnumerator() | Export-Csv C:\Temp\responsetime.csv -NoTypeInformation}

Builds histogram of response time for the home page of the web and exports to CSV for later processing in Excel

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Count

Number of probe requests to send

Type:UInt32
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Histogram

Number of buckets in histogram in output statistics

Type:UInt32
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Mode

Response time measurement mode. RoundTrip - measures full request round trip. SPRequestDuration - measures server processing time only, based on SPRequestDuration HTTP header. Latency - difference between RoundTrip and SPRequestDuration

Type:MeasureResponseTimeMode
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Timeout

Idle timeout between requests to avoid request throttling

Type:UInt32
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Url
Type:DiagnosticEndpointPipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-WarmUp

Number of warm up requests to send before start calculating statistics

Type:UInt32
Position:Named
Accept pipeline input:False
Accept wildcard characters:False