fix: remove unnecessary blank lines in allocator benchmark scripts

This commit is contained in:
monosans
2026-04-30 17:15:00 +03:00
parent ebc6c98a86
commit fc072dec02
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -34,9 +34,9 @@ for allocator in system jemalloc mimalloc_v2 mimalloc_v3; do
else
cargo build --release --locked
fi
output="$(/usr/bin/time -v /work/target/release/proxy-scraper-checker 2>&1 >/dev/null)"
peak="$(echo "$output" | awk -F': ' '/Maximum resident set size/ {print $2; exit}')"
major="$(echo "$output" | awk -F': ' '/Major \(requiring I\/O\) page faults/ {print $2; exit}')"
minor="$(echo "$output" | awk -F': ' '/Minor \(reclaiming a frame\) page faults/ {print $2; exit}')"
+4 -4
View File
@@ -13,16 +13,16 @@ function Build-Features([string]$allocator, [string]$tokio) {
function Run-One([string]$allocator, [string]$features) {
$args = @("build", "--release", "--locked")
if ($features) { $args += "--features"; $args += $features }
$proc = Start-Process -FilePath "cargo" -ArgumentList $args -PassThru -NoNewWindow -Wait
$exe = "target\release\proxy-scraper-checker.exe"
$proc = Start-Process -FilePath $exe -PassThru -NoNewWindow
$peak = 0
$faults = 0
while (-not $proc.HasExited) {
Start-Sleep -Milliseconds 100
try {