-
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
Fix benchmark reporting when benchmark script fails, and provide more reliable and informative results #4623
Conversation
be75443
to
726141e
Compare
311e20b
to
db1f45c
Compare
05780f9
to
d572b01
Compare
aa278ce
to
2ecda16
Compare
WASM Size
|
CodSpeed Performance ReportMerging #4623 will not alter performanceComparing Summary
|
2ecda16
to
c3fc98c
Compare
b02a28e
to
bd1b405
Compare
✅ WASM query-engine performance won't change substantially (0.992x)Full benchmark report
After changes in 7cb15b7 |
5140d1e
to
7ee4e62
Compare
7ee4e62
to
cb86c39
Compare
bcfd5fc
to
0105677
Compare
0105677
to
7cb15b7
Compare
Logs from the run here: And in the comment up Looks good to me ✨ (only had a quick look) |
// Recording is currently only used in benchmarks. Before we used to serialize the whole query | ||
// (sql + args) but since bigints are not serialized by JSON.stringify, and we didn't really need | ||
// args for benchmarks, we just serialize the sql part. | ||
// | ||
// If this ever changes (we reuse query recording in tests) we need to make sure to serialize the | ||
// args as well. | ||
const queryToKey = (query) => JSON.stringify(query.sql); |
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.
Reviewer's note: as discussed with Miguel yesterday, this PR also exists: #4667
Close https://github.com/prisma/team-orm/issues/851
We found a bug reporting the benchmarks when the benchmarks errored. This PR fixes that and also improves overall benchmark reporting.
The script has been tested with an artificial benchmark results file to:
And to take into consideration a failed benchmarking script.