diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-05-12 08:27:39 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-08-02 15:53:40 +0200 |
commit | 5e3840ce24040cbd1957008489cbc136c43ca391 (patch) | |
tree | 22ee331833fc285b99da325790c0edc418ab0aa7 /COPYING | |
parent | aa7ee42ed3b2c196de9f390fc9a5e339dd7417e3 (diff) |
coroutine: add test-coroutine --benchmark-lifecycle
Add a microbenchmark for coroutine create, enter, and return (aka
lifecycle). This is a useful benchmark because users are expected to
create many coroutines, one per I/O request for example, and we
therefore need to provide good performance in that scenario.
To run:
make test-coroutine
./test-coroutine --benchmark-lifecycle 20000000
This will do 20,000,000 coroutine create, enter, return iterations and
print the resulting time.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions