Skip to content

Commit c6b4850

Browse files
committed
ci: fix density benchmark — use sum(range(500M)) so VMs stay alive long enough to measure
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent dd95457 commit c6b4850

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ jobs:
229229
N=5
230230
pids=()
231231
for i in $(seq 1 $N); do
232-
pyhl run -c "x = sum(range(10_000_000)); import time; time.sleep(15); print($i, x)" &
232+
pyhl run -c "x = sum(range(500_000_000)); print($i, x)" &
233233
pids+=($!)
234234
done
235-
sleep 5
235+
sleep 8
236236
total_private=0; count=0
237237
for pid in "${pids[@]}"; do
238238
if [ -f /proc/$pid/smaps_rollup ]; then
@@ -382,11 +382,11 @@ jobs:
382382
$procs = @()
383383
for ($i = 1; $i -le 5; $i++) {
384384
$p = Start-Process -FilePath "pyhl" `
385-
-ArgumentList "run -c `"x=sum(range(10_000_000)); import time; time.sleep(15); print($i, x)`"" `
385+
-ArgumentList "run -c `"x=sum(range(500_000_000)); print($i, x)`"" `
386386
-PassThru -NoNewWindow -RedirectStandardOutput "NUL"
387387
$procs += $p
388388
}
389-
Start-Sleep -Seconds 5
389+
Start-Sleep -Seconds 10
390390
$totalPrivate = 0; $count = 0
391391
foreach ($proc in $procs) {
392392
$proc.Refresh()

0 commit comments

Comments
 (0)