From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkAb-0002j5-RF for qemu-devel@nongnu.org; Tue, 19 Aug 2014 10:13:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJkAW-0007oU-Si for qemu-devel@nongnu.org; Tue, 19 Aug 2014 10:13:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkAW-0007oQ-LX for qemu-devel@nongnu.org; Tue, 19 Aug 2014 10:13:48 -0400 Date: Tue, 19 Aug 2014 16:13:34 +0200 From: Kevin Wolf Message-ID: <20140819141334.GH4638@noname.redhat.com> References: <1407924527-32687-1-git-send-email-ming.lei@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1407924527-32687-1-git-send-email-ming.lei@canonical.com> Subject: Re: [Qemu-devel] [PATCH v1] test-coroutine: test cost introduced by coroutine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ming Lei Cc: Peter Maydell , qemu-devel@nongnu.org, Charlie Shepherd , Stefan Hajnoczi , Paolo Bonzini , Gabriel Kerneis Am 13.08.2014 um 12:08 hat Ming Lei geschrieben: > 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 Thanks, applied to the block branch. Kevin