Skip to content

Commit

Permalink
Simplify size script
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Jan 16, 2024
1 parent 76a5963 commit ee5a2b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ prisma-gpg-private.asc
.test_config
*.pending-snap
.pending.md
.size_previous.txt

*.class
*.log
Expand Down
1 change: 1 addition & 0 deletions .size_previous.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.000MB
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,7 @@ 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}' > .size_current.txt; \
if [ ! -f .size_previous.txt ]; then \
echo "0MB" > .size_previous.txt; \
fi; \
echo "Previous size: `cat .size_previous.txt`"; \
echo "Current size: `cat .size_current.txt`"; \
awk '{print $$1}' .size_previous.txt .size_current.txt | paste -d" " - - | awk '{printf "Increment: %.3fMB\n", $$2 - $$1}'; \
mv .size_current.txt .size_previous.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
Expand Down

0 comments on commit ee5a2b2

Please sign in to comment.