From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BQ047-0005n9-K3 for qemu-devel@nongnu.org; Tue, 18 May 2004 04:35:11 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BPzzb-0004zb-1q for qemu-devel@nongnu.org; Tue, 18 May 2004 04:31:03 -0400 Received: from [195.9.147.9] (helo=dionis.simtreas.ru) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPzxq-0004WY-G0 for qemu-devel@nongnu.org; Tue, 18 May 2004 04:28:43 -0400 Message-ID: <40A9C9BC.7060204@simtreas.ru> Date: Tue, 18 May 2004 12:30:52 +0400 From: "Vladimir N. Oleynik" MIME-Version: 1.0 References: <200405172346.i4HNkiOR003792@treas.simtreas.ru> In-Reply-To: <200405172346.i4HNkiOR003792@treas.simtreas.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: Speed up hack 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, fabrice@bellard.org Hi, Fabrice. > Can you estimate the speed gains ? I am especially interested by the > poll() overhead. I changed test/sha1.c for see production -#define BUFSIZE 4096 +#define BUFSIZE 4096*16 +#define TEST 10 + +#include +#include int main(int argc, char **argv) { SHA1_CTX ctx; unsigned char hash[20], buf[BUFSIZE]; - int i; + int i, tn; + struct timeval tv, tv2; + int ts, tus; + double dt; + for(tn = 0; tn < TEST; tn++) { + gettimeofday(&tv, NULL); for(i=0;i For the rest, optimizing DMA_run() would be simpler > and more efficient. May be ;-) --w vodz