Skip to content

Commit

Permalink
Output sizes in bytes, no KiB
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Feb 12, 2024
1 parent ab73a49 commit 24ca8cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,8 @@ test-driver-adapter-planetscale-wasm: test-planetscale-wasm
measure-qe-wasm: build-qe-wasm-gz
@cd query-engine/query-engine-wasm/pkg; \
for provider in postgresql mysql sqlite; do \
provider_size_bytes=$$(cat $$provider/* | wc -c); \
echo "$${provider}_size=$$(echo "scale=0; $$provider_size_bytes / 1024" | bc)" >> $(ENGINE_SIZE_OUTPUT); \
echo "$${provider}_size_gz=$$(du -k $$provider.gz | cut -f1)" >> $(ENGINE_SIZE_OUTPUT); \
echo "$${provider}_size=$$(cat $$provider/* | wc -c | tr -d ' ')" >> $(ENGINE_SIZE_OUTPUT); \
echo "$${provider}_size_gz=$$(cat $$provider.gz | wc -c | tr -d ' ')" >> $(ENGINE_SIZE_OUTPUT); \
done;

build-driver-adapters-kit: build-driver-adapters
Expand Down

0 comments on commit 24ca8cb

Please sign in to comment.