-
Notifications
You must be signed in to change notification settings - Fork 11
evp_setpeer: fix -k all #67
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
base: main
Are you sure you want to change the base?
Conversation
As max_time was initialised only once, the runs after the first one terminated immediately. Move max_time inside the key type loop. Fixes: 7388d62 "Set a constant amount of runtime on more perf tests" Signed-off-by: Eugene Syromiatnikov <[email protected]>
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.
At many (if not all) places the max time is not set directly before calling run_tests. I'm not sure if that's a feature or a bug, but if the latter it would be worth fixing through the codebase
|
Well, the only other place where it induced a bug has been already fixed in e5cd2d4, and touching it just to get the proximity seems superficial to me; if anything, the whole test harness needs to be factored out, to avoid such bugs altogether. |
|
If this specifically solves a bug then MB. I was nitpicking about the fact, that we are doing operations such as memory allocation in the measured section, which if not explicitly intended then it's not correct IMO. Also it's probably not such an overload, but it's picking my OCD |
|
There's a lot of that in terms of measurement: the fact that threads hammer the same |
jogme
left a comment
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.
thanks!
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.
Ah, my bad.
@quarckster fyi this might affect evp_setpeer perf test
Edit: Oh actually, since this is just for -k all then it probably won't
As max_time was initialised only once, the runs after the first one terminated immediately. Move max_time inside the key type loop.
Fixes: 7388d62 "Set a constant amount of runtime on more perf tests"