]> git.proxmox.com Git - qemu.git/commit - tests/test-coroutine.c
coroutine: fix /perf/nesting coroutine benchmark
authorGabriel Kerneis <gabriel@kerneis.info>
Tue, 17 Sep 2013 16:26:48 +0000 (18:26 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 19 Sep 2013 11:21:41 +0000 (13:21 +0200)
commita9031675b9f757eef0fe8c99284ec0133c032c32
treed9d0809a1cf1c65b936b4115c5087a57341d2555
parent2fcd15eac3223b3907837e8d7f2b3829a16a4c45
coroutine: fix /perf/nesting coroutine benchmark

The /perf/nesting benchmark is broken because the counters are
not reset after each iteration. Therefore, nesting is done only
on the first iteration, and skipped on every other.

This patch fixes the issue, and reduces the number of iterations
to make it possible to run the benchmark in a reasonable amount of
time.

Signed-off-by: Gabriel Kerneis <gabriel@kerneis.info>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/test-coroutine.c