1# All of the targets here assume a user has run `make release` in //modules/canvaskit 2 3perf_js: 4 node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 5 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ 6 --assets canvas_perf_assets \ 7 --bench_html canvas_perf.html \ 8 --timeout 600 # seconds 9 10frames: 11 node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 12 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ 13 --input_lottie ~/Downloads/lottie-samples/stacking.json \ 14 --bench_html skottie-frames.html 15 16frames_cpu: 17 node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 18 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm \ 19 --input_lottie ~/Downloads/lottie-samples/404.json \ 20 --bench_html skottie-frames.html 21 22skp: 23 node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 24 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ 25 --input_skp ~/Downloads/skps/desk_nytimes.skp \ 26 --bench_html render-skp.html 27 28skps_release_and_simd: 29 ./perf_all_skps.sh --release --simd --summary