Skip to content

Commit

Permalink
Add task for continuous measuring
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Dec 26, 2023
1 parent f27e376 commit bc89e55
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,18 @@ 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; \

build-driver-adapters-kit: build-driver-adapters
cd query-engine/driver-adapters && pnpm i && pnpm build

Expand Down

0 comments on commit bc89e55

Please sign in to comment.