Subject: Re: bin/17466: awk(1), awk vs. gawk
To: NetBSD Bugs and PR posting List <netbsd-bugs@NetBSD.ORG>
From: David Laight <>
List: netbsd-bugs
Date: 07/03/2002 20:21:03
> 	/bin/awk
> 	    7.38s real     0.99s user     1.76s system
> 	/usr/pkg/bin/gawk
> 	   14.56s real     2.27s user     4.73s system
> 	./gawk
> 	    7.92s real     0.52s user     1.81s system
> Welcome to the overhead of!  :-)

I wonder what it is up to (or even how to benchmark it).
Clearly you have to do a VOP_LOOKUP (or whatever netbsd calls it)
for each shared library, but the extra mmap() calls shouldn't
take too long I wouldn't have thought there was that much
O(n) stuff to do....

I wonder how to profile it - would probably be enlightening
(time is often spent where you least expect it!)

Oh, how many libraries are required?
(I guess their (required) pages would be present)


David Laight: