From owner-freebsd-hackers Sat Dec 23 22:27:17 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA04265 for hackers-outgoing; Sat, 23 Dec 1995 22:27:17 -0800 (PST) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA04258 Sat, 23 Dec 1995 22:27:14 -0800 (PST) Received: from corbin.Root.COM (corbin [198.145.90.50]) by Root.COM (8.6.12/8.6.5) with ESMTP id WAA01577; Sat, 23 Dec 1995 22:27:13 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.7.3/8.6.5) with SMTP id WAA00623; Sat, 23 Dec 1995 22:27:16 -0800 (PST) Message-Id: <199512240627.WAA00623@corbin.Root.COM> To: gclarkii@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Pentium bcopy 486DX-66 results In-reply-to: Your message of "Sun, 24 Dec 95 00:21:25 CST." <199512240621.AAA01040@main.gbdata.com> From: David Greenman Reply-To: davidg@Root.COM Date: Sat, 23 Dec 1995 22:27:16 -0800 Sender: owner-hackers@freebsd.org Precedence: bulk >Here are my results on a 486DX4-100 8 meg in X not sure about cache. > >gcc -m486 -O2 -o testcopy testing.c copy.o >main:gclarkii# time testcopy >copy 10232 >bcopy 2403 >memcpy 9315 >21.9u 0.0s 0:22.08 99.5% 5+183k 1+0io 0pf+0w > >My sources are using 1024 for SIZE and I just change copy for bcopy for the >bcopy stats. It looks like copy is a big loss for me...:( "copy" takes it's size in longwords and bcopy takes it in bytes. Did you multiply the size times sizeof(int)? -DG