[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201008062126.10789.vda.linux@googlemail.com>
Date: Fri, 6 Aug 2010 21:26:10 +0200
From: Denys Vlasenko <vda.linux@...glemail.com>
To: Michał Nazarewicz <m.nazarewicz@...sung.com>
Cc: Michal Nazarewicz <mina86@...a86.com>,
linux-kernel@...r.kernel.org,
"Douglas W. Jones" <jones@...uiowa.edu>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH 3/3] lib: vsprintf: added a put_dec() test and benchmark tool
On Friday 06 August 2010 10:34, Michał Nazarewicz wrote:
> On Fri, 06 Aug 2010 07:10:06 +0200, Denys Vlasenko <vda.linux@...glemail.com> wrote:
>
> > On Friday 06 August 2010 00:38, Michal Nazarewicz wrote:
> >> This commit adds a test application for the put_dec() and
> >> family of functions that are used by the previous two commits.
> >>
> >> Signed-off-by: Michal Nazarewicz <mina86@...a86.com>
> >
> >> +put-dec-test: put-dec-test.c
> >> + exec $(CC) $(CFLAGS) -o $@ $<
> >
> > (1) Why exec?
>
> Micro Makefile optimisation -- saves us a fork().
>
> I'll try to fix the benchmark over the weekend and will post updated
> version. Thanks for the comments.
You might find some ideas in the attached file:
* removed "correction" code
* added verification of correctness for put_dec()
* different rand64
(old one was giving same "random" number surprisingly often)
* more robust coding in a few places
--
vda
View attachment "put-dec-test.c" of type "text/x-csrc" (8206 bytes)
Powered by blists - more mailing lists