W3Cschool
恭喜您成為首批注冊(cè)用戶(hù)
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
基準(zhǔn)測(cè)試對(duì)于衡量改動(dòng)可能引起的性能變化很重要. 從用戶(hù)和貢獻(xiàn)者的角度, 我們提供了簡(jiǎn)便的方法測(cè)試你的應(yīng)用. 這套配置可以自動(dòng)化你的基準(zhǔn)測(cè)試, 從不同的分支和不同的 Node.js 的版本.
我們將使用以下模塊:
npm run benchmark
npx -p node@6 -- npm run benchmark
branchcmp --rounds 2 --script "npm run benchmark"
branchcmp --rounds 2 --script "npm run benchmark"
branchcmp --rounds 2 --gitflow --script "npm run benchmark"
or
npm run bench
branchcmp --rounds 2 -s "node ./node_modules/concurrently -k -s first \"node ./examples/asyncawait.js\" \"node ./node_modules/autocannon -c 100 -d 5 -p 10 localhost:3000/\""
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話(huà):173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: