fixed comments;

This commit is contained in:
Julian lechner
2025-07-31 08:34:20 +02:00
parent b55cb4514d
commit 865176235e
2 changed files with 1 additions and 11 deletions
+1 -9
View File
@@ -43,15 +43,7 @@ This PowerShell script measures DNS query response times for a list of domains a
## ▶️ Usage ## ▶️ Usage
```powershell ```powershell
# Run with default parameters .\v1
.\DNSPerformanceTest.ps1
# Run with custom parameters
dotnet-script DNSPerformanceTest.ps1 \
-DnsServer "1.1.1.1" \
-QueriesPerDomain 3 \
-DomainsFile "Domains.txt" \
-ResultsFile "Results.csv"
``` ```
--- ---
-2
View File
@@ -5,7 +5,6 @@ param(
[string]$ResultsFile = 'Results.csv' [string]$ResultsFile = 'Results.csv'
) )
# Domains einlesen
if (-not (Test-Path $DomainsFile)) { if (-not (Test-Path $DomainsFile)) {
Write-Error "Domains-File '$DomainsFile' not found." Write-Error "Domains-File '$DomainsFile' not found."
exit 1 exit 1
@@ -32,7 +31,6 @@ foreach ($domain in $domains) {
} }
} }
# Statistik
$results = Import-Csv $ResultsFile | Where-Object { $_.response_ms -ne 'ERR' } ` $results = Import-Csv $ResultsFile | Where-Object { $_.response_ms -ne 'ERR' } `
| Select-Object @{n='response_ms';e={[double]$_.response_ms}} | Select-Object @{n='response_ms';e={[double]$_.response_ms}}
$avg = [math]::Round(($results | Measure-Object response_ms -Average).Average,2) $avg = [math]::Round(($results | Measure-Object response_ms -Average).Average,2)