Towards a One True Printf

Peter Pentchev roam at ringlet.net
Sat Sep 18 08:11:29 UTC 2010


On Fri, Sep 17, 2010 at 03:00:21PM -0700, mdf at FreeBSD.org wrote:
[snip]
> With changes in hand, I wrote a small user-space utility to benchmark
> the existing fprintf and sprintf versus the new one.  Note that the
> my_fprintf() function essentially borrows from the guts of
> printfcommon.h.  This
> 
> http://people.freebsd.org/~mdf/printf_test.c
> 
> The numbers I get I found rather interesting (also, I appear to be
> incompetent at calculating standard deviations; I'm sure someone will
> correct my code).

Just a side note, but... have you tried outputting the raw numbers and
feeding them to ministat(1)? :)

G'luck,
Peter

-- 
Peter Pentchev	roam at space.bg    roam at ringlet.net    roam at FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Nostalgia ain't what it used to be.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20100918/205666eb/attachment.pgp


More information about the freebsd-arch mailing list