forked from MPCoreDeveloper/SharpCoreDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunStorageBenchmark.ps1
More file actions
42 lines (32 loc) · 1.34 KB
/
RunStorageBenchmark.ps1
File metadata and controls
42 lines (32 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Simpelste Storage Engine Benchmark Runner
# Gewoon dubbelklikken of "powershell .\RunStorageBenchmark.ps1"
$ErrorActionPreference = "Stop"
Write-Host ""
Write-Host "==================================================" -ForegroundColor Cyan
Write-Host " SharpCoreDB Storage Engine Benchmark" -ForegroundColor Cyan
Write-Host "==================================================" -ForegroundColor Cyan
Write-Host ""
# Ga naar de juiste directory
Set-Location "D:\source\repos\MPCoreDeveloper\SharpCoreDB\SharpCoreDB.Tests"
Write-Host "Running test..." -ForegroundColor Yellow
Write-Host ""
# Run de test
dotnet test --filter "FullyQualifiedName~StorageEngineComparisonTest" --logger "console;verbosity=detailed"
Write-Host ""
Write-Host "==================================================" -ForegroundColor Cyan
Write-Host ""
# Check voor report
$reportFile = "STORAGE_ENGINE_COMPARISON.md"
if (Test-Path $reportFile) {
Write-Host "Report generated: $reportFile" -ForegroundColor Green
Write-Host ""
# Toon de eerste 50 regels
Get-Content $reportFile -Head 50
Write-Host ""
Write-Host "Full report: D:\source\repos\MPCoreDeveloper\SharpCoreDB\SharpCoreDB.Tests\$reportFile" -ForegroundColor Cyan
} else {
Write-Host "No report file found" -ForegroundColor Yellow
}
Write-Host ""
Write-Host "Press Enter to exit..."
Read-Host