Subject: Re: 25%+ improvement in in_cksum speed!
To: Steven M. Bellovin <smb@research.att.com>
From: Michael Graff <explorer@flame.org>
List: port-i386
Date: 09/17/2002 17:14:31
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Steven M. Bellovin" <smb@research.att.com> writes:

> I haven't looked at your code in detail, but how does it perform on 
> small packets?  (~40-50% of packets are about 40 bytes.)

It's not my code, but here's what happens when I use a size of 50
bytes:

          in_cksum.s sum a26d took     2887 usecs 0.563867 nsec/byte
           asm adc 1 sum eab6 took     5033 usecs 0.983008 nsec/byte
          asm adc 1a sum eab6 took     3758 usecs 0.733984 nsec/byte
Segmentation fault (core dumped)


:)

- --Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)
Comment: See http://www.flame.org/~explorer/pgp for my keys

iD8DBQE9h8Vnl6Nz7kJWYWYRAnEOAJ9VzlG8qufuV6lF/b0fpXUZ9+fqLQCfYPSX
JbBM9i3ikIe5WDJOBWTIj6w=
=0N0a
-----END PGP SIGNATURE-----