Initial v1 #2

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