commit | 61ff8cfbec64f08f6955fe04649665f9f7eb0cc6 | [log] [tgz] |
---|---|---|
author | Ming Lei <ming.lei@canonical.com> | Wed Aug 13 18:08:47 2014 +0800 |
committer | Kevin Wolf <kwolf@redhat.com> | Wed Aug 20 11:51:28 2014 +0200 |
tree | 05aea60baf0da5d8042de030ef5bdd84f935bc08 | |
parent | a1cb48a3bffdb62c429297ac7057d1ce76fc4839 [diff] |
test-coroutine: test cost introduced by coroutine This test runs dummy function with coroutine by using two enter and one yield since which is a common usage. So we can see the cost introduced by corouting for running one function, for example: Run operation 20000000 iterations 4.841071 s, 4131K operations/s 242ns per coroutine Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>