DescriptionMicrobenchmark for the cost of posting tasks to different pump types
This adds microbenchmarks to measure the cost of posting a task to
a message loop running different pump types. This measures the wall and
(where supported) thread time that elapses from different numbers of
threads posting to one target. This is not designed to measure the time
taken by the target thread or fairness of posting threads.
Each test is set up with one target thread and 1-4 posting threads. The
posting threads each run one task that posts batches of tasks to the
target thread until they have been working for at least 5 seconds of
wall time. The tasks on the target thread simply increment a counter.
The test runner starts each posting thread, posts a start task to each
then joins them and then joins the target thread and aggregates stats.
BUG=412137
Committed: https://crrev.com/2e146d74f78041f91bd43562bd1a0210374a41eb
Cr-Commit-Position: refs/heads/master@{#297264}
Patch Set 1 #
Total comments: 2
Patch Set 2 : naming, separate Start loop from first posted task #Patch Set 3 : benchmark signalling a pump and posting a task separately #Patch Set 4 : more realistic task posting benchmark #Patch Set 5 : #
Total comments: 2
Patch Set 6 : remove format_macros.h includes #
Messages
Total messages: 20 (2 generated)
|