1# This shows an example invocation presuming the user has built canvaskit locally. 2frames_lego: 3 node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 4 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ 5 --input_lottie ../../modules/canvaskit/perf/assets/lego_loader.json \ 6 --bench_html skottie-frames.html 7 8frames_cpu_lego: 9 node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 10 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm \ 11 --input_lottie ../../modules/canvaskit/perf/assets/lego_loader.json \ 12 --bench_html skottie-frames.html 13 14test_path_transform_without_snap: 15 node perf-canvaskit-with-puppeteer.js --canvaskit_js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 16 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ 17 --assets path_translate_assets \ 18 --bench_html path-transform.html \ 19 --query_params translate opacity 20 21test_path_transform_with_snap: 22 node perf-canvaskit-with-puppeteer.js --canvaskit_js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 23 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ 24 --assets path_translate_assets \ 25 --bench_html path-transform.html \ 26 --query_params translate opacity snap 27 28skp_with_local: 29 node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 30 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ 31 --input_skp ${HOME}/skps/desk_nytimes.skp \ 32 --bench_html render-skp.html 33 34# runs all the tests in canvas_perf.js 35perf_js: 36 node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ 37 --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ 38 --assets canvas_perf_assets \ 39 --bench_html canvas_perf.html \ 40 --timeout 600 # seconds 41 42skps_release_and_simd: 43 ./perf_all_skps.sh --release --simd --summary