Skip to content
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

Don't assume that the benchmark won't flush the message queue #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frej
Copy link

@frej frej commented Jul 2, 2019

eministat:s_warmup/1 schedules the sending of a 'warmup_over' message
to self() to stop warmup after 3 seconds. If the benchmarked function
flushes the message queue, the message can be lost and warmup go on
indefinitely.

This patch changes s_warmup/1 to not rely on message sending, instead
s_warmup/1 remembers when it started and terminates the warmup loop
when 3s have elapsed.

eministat:s_warmup/1 schedules the sending of a 'warmup_over' message
to self() to stop warmup after 3 seconds. If the benchmarked function
flushes the message queue, the message can be lost and warmup go on
indefinitely.

This patch changes s_warmup/1 to not rely on message sending, instead
s_warmup/1 remembers when it started and terminates the warmup loop
when 3s have elapsed.
@frej frej force-pushed the fix/survive-flush branch from df3e215 to 18a61bf Compare July 2, 2019 13:47
@frej frej requested a review from jlouis January 24, 2020 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants