From ba90517ad76544bef6641ac5d00f19c417f0793b Mon Sep 17 00:00:00 2001 From: Surma Date: Thu, 21 Feb 2019 15:14:16 +0000 Subject: [PATCH] Remove baseline benchmark and switch to tile size 16 --- codecs/rotate/package.json | 2 +- codecs/rotate/rotate.rs | 2 +- codecs/rotate/rotate.wasm | Bin 1447 -> 1435 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codecs/rotate/package.json b/codecs/rotate/package.json index 5e26e8d7..add6a95a 100644 --- a/codecs/rotate/package.json +++ b/codecs/rotate/package.json @@ -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" diff --git a/codecs/rotate/rotate.rs b/codecs/rotate/rotate.rs index 53b944c4..550318e8 100644 --- a/codecs/rotate/rotate.rs +++ b/codecs/rotate/rotate.rs @@ -22,7 +22,7 @@ impl HardUnwrap for Option { } } -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; diff --git a/codecs/rotate/rotate.wasm b/codecs/rotate/rotate.wasm index 31711159b9e8a28b819772919e9b1f0c3dea0eca..246fe6b768b8ec3f7816bb8dccddd4e6c9c73782 100755 GIT binary patch delta 170 zcmZ3^J)3(%HRHUAHIYoem?vJhmFCY<;#6SwRAS?0R^U`%^i+~?1+o|w*c}BX8!)Od z3QUe*^k);uQs8yupS+IIR6JjSKO3lpNrBT_I?Iu%BwJBHfgh;&52FoGu@%!##>UAe z%pQ#VlWUnJfg&@QL53V)_JA3}&jK=pFI$NVXb2a~5Pk(dpdqm=KtndqX5nE30Q8zA AO8@`> delta 186 zcmbQuy_|bOHRGy@HIYmWEEBKW%GhTqaVoHTDzWi0D{v|>dMZh{0$Gd-?2ZQ*ChIe* zF#)MCMt}AL3|R`ij`ovRGnz8(ub=#oQ4}QeozVtFnK1oiY@e*h>;W>4OM$~vi3Ml~ z7sxnqh;bYs<0dkLjoZQO0XL3~#Z+>Cy#il0P#cp1m$!75BU4GXBEJG3NJ9_{$oS3u HEIf<=BbP0Z