From fc072dec02b0076d65c53d7183e9b1fe014d107b Mon Sep 17 00:00:00 2001 From: monosans Date: Thu, 30 Apr 2026 17:15:00 +0300 Subject: [PATCH] fix: remove unnecessary blank lines in allocator benchmark scripts --- .github/scripts/allocator_bench_alpine.sh | 4 ++-- .github/scripts/allocator_bench_windows.ps1 | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/allocator_bench_alpine.sh b/.github/scripts/allocator_bench_alpine.sh index 8ded6e9..5b9e2e3 100755 --- a/.github/scripts/allocator_bench_alpine.sh +++ b/.github/scripts/allocator_bench_alpine.sh @@ -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}')" diff --git a/.github/scripts/allocator_bench_windows.ps1 b/.github/scripts/allocator_bench_windows.ps1 index 55d43eb..0eb3ed7 100644 --- a/.github/scripts/allocator_bench_windows.ps1 +++ b/.github/scripts/allocator_bench_windows.ps1 @@ -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 {