mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 16:57:26 +00:00
Scriptify benchmark running
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:image": "docker build -t squoosh-rotate .",
|
"build:image": "docker build -t squoosh-rotate .",
|
||||||
"build": "docker run --rm -v $(pwd):/src squoosh-rotate ./build.sh",
|
"build": "docker run --rm -v $(pwd):/src squoosh-rotate ./build.sh",
|
||||||
"benchmark": "v8 --liftoff --no-wasm-tier-up --no-opt ./benchmark.js"
|
"benchmark": "echo File size after gzip && npm run benchmark:filesize && echo Baseline && npm run benchmark:baseline && echo Optimizing && npm run benchmark:optimizing",
|
||||||
|
"benchmark:baseline": "v8 --liftoff --no-wasm-tier-up --no-opt ./benchmark.js",
|
||||||
|
"benchmark:optimizing": "v8 ./benchmark.js",
|
||||||
|
"benchmark:filesize": "cat rotate.wasm | gzip -c9n | wc -c"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user