Skip to content

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

Open
frej wants to merge 1 commit intojlouis:masterfrom
frej:fix/survive-flush
Open

Don't assume that the benchmark won't flush the message queue#6
frej wants to merge 1 commit intojlouis:masterfrom
frej:fix/survive-flush

Conversation

@frej
Copy link
Copy Markdown

@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