Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FnF4y-0001Eh-9Q for qemu-devel@nongnu.org; Mon, 05 Jun 2006 09:25:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FnF4w-0001Cw-OK for qemu-devel@nongnu.org; Mon, 05 Jun 2006 09:25:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnF4w-0001Ct-Ix for qemu-devel@nongnu.org; Mon, 05 Jun 2006 09:25:10 -0400 Received: from [66.139.79.212] (helo=tapir.sajinet.com.pe) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FnFC5-0003Yj-UV for qemu-devel@nongnu.org; Mon, 05 Jun 2006 09:32:34 -0400 Date: Mon, 5 Jun 2006 08:43:46 -0500 From: Carlo Marcelo Arenas Belon Subject: Re: [Qemu-devel] yet another proposed solution for gcc 4.x Message-ID: <20060605134346.GE26124@tapir.sajinet.com.pe> References: <20060604085935.GB24853@tapir.sajinet.com.pe> <200606041246.07373.paul@codesourcery.com> <20060604160228.GA26124@tapir.sajinet.com.pe> <46d6db660606050421y77a65b4ehe253dba7ff8a799e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46d6db660606050421y77a65b4ehe253dba7ff8a799e@mail.gmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Jun 05, 2006 at 01:21:48PM +0200, Christian MICHON wrote: > did you get better benchmark results than using gcc-3.x ? proportionally to native execution, yes (the gcc-4.1.1's compiled sha1-i386 binary from the tests was slower than the one compiled with gcc-3.4.5) results for running in an amd64 box with native x86 support and no kqemu for a manually tweaked (as the Makefile won't work for amd64) `make speed` shown below : for the gcc-3.4.5 compiled qemu 0.8.1 (vanilla untar in /var/tmp): carenas@laptop /var/tmp/qemu-0.8.1/tests $ cat ../config-host.mak | grep CC CC=gcc-3.4.5 HAVE_GCC3_OPTIONS=yes HOST_CC=gcc-3.4.5 carenas@laptop /var/tmp/qemu-0.8.1/tests $ gcc-3.4.5 -m32 -Wall -O2 -g -o sha1-i386 sha1.c carenas@laptop /var/tmp/qemu-0.8.1/tests $ time ./sha1-i386 SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6 real 0m0.027s user 0m0.025s sys 0m0.001s carenas@laptop /var/tmp/qemu-0.8.1/tests $ time ../i386-user/qemu-i386 ./sha1-i386 SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6 real 0m0.255s user 0m0.250s sys 0m0.005s carenas@laptop /var/tmp/qemu-0.8.1/tests $ echo | awk '{ print 255/27; }' 9.44444 for the patched qemu with hybrid compilers (patched in /var/tmp with directory name qemu-0.8.1-hybrid) carenas@laptop /var/tmp/qemu-0.8.1-hybrid/tests $ cat ../config-host.mak | grep CC CC=gcc HAVE_GCC3_OPTIONS=yes HOST_CC=gcc OP_CC=gcc-3.4.5 carenas@laptop /var/tmp/qemu-0.8.1-hybrid/tests $ gcc -m32 -Wall -O2 -g -o sha1-i386 sha1.c carenas@laptop /var/tmp/qemu-0.8.1-hybrid/tests $ time ./sha1-i386 SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6 real 0m0.031s user 0m0.030s sys 0m0.000s carenas@laptop /var/tmp/qemu-0.8.1-hybrid/tests $ time ../i386-user/qemu-i386 ./sha1-i386 SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6 real 0m0.287s user 0m0.284s sys 0m0.004s carenas@laptop /var/tmp/qemu-0.8.1-hybrid/tests $ echo | awk '{ print 287/31; }' 9.25806 Carlo PS. is there any "standard" way to benchmark qemu that is all agreed upon as authoritative other than `make speed`? PS2. showing here the output of a typical sample, but obviously i run them several times to eliminate any statistical noise.