From db1f45ccf34871de150cc004af89407a2d0458c6 Mon Sep 17 00:00:00 2001 From: Miguel Fernandez Date: Thu, 28 Dec 2023 15:05:51 +0100 Subject: [PATCH] Add measure-qe-wasm task to continuously measure size locally --- Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Makefile b/Makefile index fa7bc33c7dba..cbf9a6bf07ee 100644 --- a/Makefile +++ b/Makefile @@ -335,17 +335,9 @@ else cd query-engine/query-engine-wasm && ./build.sh endif -.PHONY: measure-qe-wasm measure-qe-wasm: build-qe-wasm @cd query-engine/query-engine-wasm/pkg; \ - gzip -c query_engine_bg.wasm | wc -c | awk '{$$1/=(1024*1024); printf "%.3fMB\n", $$1}' > temp_size.txt; \ - if [ ! -f size.txt ]; then \ - echo "0MB" > size.txt; \ - fi; \ - echo "Previous size: `cat size.txt`"; \ - echo "Current size: `cat temp_size.txt`"; \ - awk '{print $$1}' size.txt temp_size.txt | paste -d" " - - | awk '{printf "Increment: %.3fMB\n", $$2 - $$1}'; \ - mv temp_size.txt size.txt; \ + gzip -k -c query_engine_bg.wasm | wc -c | awk '{$$1/=(1024*1024); printf "Current wasm query-engine size compressed: %.3fMB\n", $$1}' build-driver-adapters-kit: build-driver-adapters cd query-engine/driver-adapters && pnpm i && pnpm build