fix: remove unnecessary blank lines in allocator benchmark scripts
This commit is contained in:
@@ -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}')"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user