File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -168,18 +168,14 @@ jobs:
168168
169169 - run : chmod a+x ./lightpanda
170170
171- - name : start http
172- run : |
173- go run ws/main.go & echo $! > WS.pid
174- sleep 2
175-
176171 - name : run puppeteer
177172 run : |
173+ go run ws/main.go & echo $! > WS.pid
178174 ./lightpanda serve & echo $! > LPD.pid
179- sleep 2
175+ sleep 1
180176 RUNS=100 npm run bench-puppeteer-cdp > puppeteer.out || exit 1
181177 cat /proc/`cat LPD.pid`/status |grep VmHWM|grep -oP '\d+' > LPD.VmHWM
182- kill `cat LPD.pid`
178+ kill `cat LPD.pid` `cat WS.pid`
183179
184180 - name : puppeteer result
185181 run : cat puppeteer.out
@@ -194,10 +190,10 @@ jobs:
194190
195191 - name : run hyperfine
196192 run : |
193+ go run ws/main.go & echo $! > WS.pid
194+ sleep 1
197195 hyperfine --export-json=hyperfine.json --warmup 3 --runs 20 --shell=none "./lightpanda --dump http://127.0.0.1:1234/campfire-commerce/"
198-
199- - name : stop http
200- run : kill `cat WS.pid`
196+ kill `cat WS.pid`
201197
202198 - name : write commit
203199 run : |
You can’t perform that action at this time.
0 commit comments