Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Dec 1995 04:08:40 -0600 (CST)
From:      Gary Clark II <gclarkii@main.gbdata.com>
To:        freebsd-hackers@freebsd.org
Subject:   Pentium bcopy 486DX4-100 results
Message-ID:  <199512241008.EAA09104@main.gbdata.com>
In-Reply-To: <199512240627.WAA00623@corbin.Root.COM> from "David Greenman" at Dec 23, 95 10:27:16 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512241008.EAA09104>