Skip to content

Commit

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

*.class
*.log
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,14 @@ 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; \
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.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; \
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; \

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

0 comments on commit 76a5963

Please sign in to comment.