Merge pull request #728 from lightpanda-io/e2e-bench
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / puppeteer-perf (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled

ci: switch lpd_bench_cdp
This commit is contained in:
Pierre Tachoire
2025-05-30 15:41:55 +02:00
committed by GitHub

View File

@@ -150,7 +150,7 @@ jobs:
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
# use a self host runner. # use a self host runner.
runs-on: lpd_bench_m5.large runs-on: lpd-bench-hetzner
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
@@ -169,11 +169,14 @@ jobs:
- run: chmod a+x ./lightpanda - run: chmod a+x ./lightpanda
- name: start http - name: start http
run: go run ws/main.go & echo $! > WS.pid run: |
go run ws/main.go & echo $! > WS.pid
sleep 2
- name: run puppeteer - name: run puppeteer
run: | run: |
./lightpanda serve & echo $! > LPD.pid ./lightpanda serve & echo $! > LPD.pid
sleep 2
RUNS=100 npm run bench-puppeteer-cdp > puppeteer.out || exit 1 RUNS=100 npm run bench-puppeteer-cdp > puppeteer.out || exit 1
cat /proc/`cat LPD.pid`/status |grep VmHWM|grep -oP '\d+' > LPD.VmHWM cat /proc/`cat LPD.pid`/status |grep VmHWM|grep -oP '\d+' > LPD.VmHWM
kill `cat LPD.pid` kill `cat LPD.pid`