2020-05-01 18:16:27 +00:00
|
|
|
# This shows an example invocation presuming the user has built canvaskit locally.
|
2020-11-12 14:11:47 +00:00
|
|
|
frames_lego:
|
2020-05-01 18:16:27 +00:00
|
|
|
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
|
2020-05-29 20:13:51 +00:00
|
|
|
|
2020-11-12 14:11:47 +00:00
|
|
|
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
|
|
|
|
|
2020-05-29 20:13:51 +00:00
|
|
|
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 \
|
2020-06-10 19:10:16 +00:00
|
|
|
--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 \
|
2020-07-16 17:25:01 +00:00
|
|
|
--bench_html render-skp.html
|
|
|
|
|
2020-07-29 15:01:55 +00:00
|
|
|
# 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 \
|
2020-08-06 19:27:47 +00:00
|
|
|
--assets canvas_perf_assets \
|
2020-08-10 14:49:02 +00:00
|
|
|
--bench_html canvas_perf.html \
|
|
|
|
--timeout 600 # seconds
|
2020-07-29 15:01:55 +00:00
|
|
|
|
2020-07-16 17:25:01 +00:00
|
|
|
skps_release_and_simd:
|
|
|
|
./perf_all_skps.sh --release --simd --summary
|