checkpoint: pipeline + 27k/h baseline before sitemap discovery
This commit is contained in:
12
burst_test.ps1
Normal file
12
burst_test.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
$ua="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
|
||||
$sw=[Diagnostics.Stopwatch]::StartNew()
|
||||
$results=@()
|
||||
1..15 | ForEach-Object {
|
||||
$id = 45184893 + $_
|
||||
$code = curl.exe -s -o NUL -A $ua -w "%{http_code}" "https://www.iaai.com/VehicleDetail/$id~US"
|
||||
$results += [pscustomobject]@{Idx=$_; Id=$id; Code=$code}
|
||||
}
|
||||
$sw.Stop()
|
||||
$results | Format-Table -AutoSize | Out-String | Set-Content burst_results.txt
|
||||
("elapsed_total_s={0}" -f [math]::Round($sw.Elapsed.TotalSeconds,2)) | Add-Content burst_results.txt
|
||||
("avg_per_page_s={0}" -f [math]::Round($sw.Elapsed.TotalSeconds/15,2)) | Add-Content burst_results.txt
|
||||
Reference in New Issue
Block a user