-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makefile: fix building wasm-engine when nix is not installed and add task for local size measuring and comparision #4622
Conversation
WASM Size
|
🚨 WASM query-engine: 9 benchmark(s) have regressed at least 2%Full benchmark report
After changes in db1f45c |
CodSpeed Performance ReportMerging #4622 will not alter performanceComparing Summary
|
Makefile
Outdated
@@ -327,14 +327,26 @@ build-qe-napi: | |||
cargo build --package query-engine-node-api --profile $(PROFILE) | |||
|
|||
build-qe-wasm: | |||
ifndef $(NIX) | |||
ifneq ($(strip $(NIX)),) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewier's note: "The strip function is used to remove leading and trailing whitespace from the value of the variable". I'm not quite sure why this is needed, but it's safe to keep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is needed because depending on your shell command -v nix
(Which is used to populate the NIX
variable) might not return what you want for the comparision to be effective.
Makefile
Outdated
echo "Previous size: `cat size.txt`"; \ | ||
echo "Current size: `cat temp_size.txt`"; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking nit: can we call this .size_previous.txt
and .size_current.txt
?
I feel the current names for these text files could be a source of confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, let's note that this only measures the gzip'd wasm
size without considering the necessary JavaScript glue code. On the other hand, wasm-pack pack
creates a tar.gz
file that takes the glue code into account as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How much code does that account for, zipped?
ee5a2b2
to
8c38ba4
Compare
8c38ba4
to
311e20b
Compare
311e20b
to
db1f45c
Compare
This PR:
measure-qe-wasm
to continuously measure size locally. fab903f