From owner-freebsd-hackers Sun Dec 24 02:10:00 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA17594 for hackers-outgoing; Sun, 24 Dec 1995 02:10:00 -0800 (PST) Received: from main.gbdata.com (dial37.phoenix.net [199.3.234.72]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA17560 for ; Sun, 24 Dec 1995 02:08:32 -0800 (PST) Received: (from gclarkii@localhost) by main.gbdata.com (8.6.12/8.6.9) id EAA09104 for freebsd-hackers@freebsd.org; Sun, 24 Dec 1995 04:08:42 -0600 From: Gary Clark II Message-Id: <199512241008.EAA09104@main.gbdata.com> Subject: Pentium bcopy 486DX4-100 results To: freebsd-hackers@freebsd.org Date: Sun, 24 Dec 1995 04:08:40 -0600 (CST) Reply-To: gclarkii@freebsd.org In-Reply-To: <199512240627.WAA00623@corbin.Root.COM> from "David Greenman" at Dec 23, 95 10:27:16 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk David Greenman wrote: > > >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 > Hi, Even with the sizeof(int) copy blows on my system. Here is update one. main:gclarkii# time testcopy copy 10431 bcopy 9534 memcpy 9516 29.4u 0.0s 0:30.80 95.8% 5+188k 0+0io 0pf+0w Does this look better? Gary Gary Clark II (N5VMF) gclarkii@FreeBSD.ORG