benchmark: complete the sqlite is-transaction fix - #65218
Conversation
Signed-off-by: geeksilva97 <edigleyssonsilva@gmail.com>
|
Review requested:
|
H4ad
left a comment
There was a problem hiding this comment.
The initial idea was to assert this never returns invalid value due any optimization (such as fast apis)
But this works as well, thanks for the fix
No prob. Btw, this is my first time changing benchmark stuff. Do we need CI for it? |
|
Benchmark GHA (sqlite / sqlite-is-transaction): https://github.com/nodejs/node/actions/runs/31584406184 Results
Benchmark results:
|
This PR removes the Logical AND assignment. It was causing the benchmark to call the
isTransactiononly once when the getter was returningfalse.With the
deadCodeEliminationbeing false, the right side never runs.Before
After