# This shows an example invocation presuming the user has built canvaskit locally. frames_lego: node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ --input_lottie ../../modules/canvaskit/perf/assets/lego_loader.json \ --bench_html skottie-frames.html frames_cpu_lego: node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm \ --input_lottie ../../modules/canvaskit/perf/assets/lego_loader.json \ --bench_html skottie-frames.html test_path_transform_without_snap: node perf-canvaskit-with-puppeteer.js --canvaskit_js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ --assets path_translate_assets \ --bench_html path-transform.html \ --query_params translate opacity test_path_transform_with_snap: node perf-canvaskit-with-puppeteer.js --canvaskit_js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ --assets path_translate_assets \ --bench_html path-transform.html \ --query_params translate opacity snap skp_with_local: node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ --input_skp ${HOME}/skps/desk_nytimes.skp \ --bench_html render-skp.html # runs all the tests in canvas_perf.js perf_js: node perf-canvaskit-with-puppeteer.js --canvaskit_js ../../out/canvaskit_wasm/canvaskit.js \ --canvaskit_wasm ../../out/canvaskit_wasm/canvaskit.wasm --use_gpu \ --assets canvas_perf_assets \ --bench_html canvas_perf.html \ --timeout 600 # seconds skps_release_and_simd: ./perf_all_skps.sh --release --simd --summary