Remove baseline benchmark and switch to tile size 16

This commit is contained in:
Surma
2019-02-21 15:14:16 +00:00
parent 7aff949f47
commit ba90517ad7
3 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
"scripts": {
"build:image": "docker build -t squoosh-rotate .",
"build": "docker run --rm -v $(pwd):/src squoosh-rotate ./build.sh",
"benchmark": "echo File size after gzip && npm run benchmark:filesize && echo Baseline && npm run benchmark:baseline && echo Optimizing && npm run benchmark:optimizing",
"benchmark": "echo File size after gzip && npm run benchmark:filesize && echo Optimizing && npm run -s benchmark:optimizing",
"benchmark:baseline": "v8 --liftoff --no-wasm-tier-up --no-opt ./benchmark.js",
"benchmark:optimizing": "v8 --no-liftoff --no-wasm-tier-up ./benchmark.js",
"benchmark:filesize": "cat rotate.wasm | gzip -c9n | wc -c"

View File

@@ -22,7 +22,7 @@ impl<T> HardUnwrap<T> for Option<T> {
}
}
const TILE_SIZE: usize = 64;
const TILE_SIZE: usize = 16;
fn get_buffers<'a>(width: usize, height: usize) -> (&'a [u32], &'a mut [u32]) {
let num_pixels = width * height;

Binary file not shown.