[PATCH 1/4] Make bench.out in json format

Rich Felker dalias@aerifal.cx
Tue Mar 25 15:41:00 GMT 2014


On Tue, Mar 25, 2014 at 05:28:13PM +0530, Siddhesh Poyarekar wrote:
> On Tue, Mar 25, 2014 at 11:48:24AM +0000, Will Newton wrote:
> > In principle this seems ok to me, although it does seem to make the
> > output quite ugly for the human reader. Would it be possible to get
> > the layout a bit tidier? i.e. indentation and newlines.
> 
> I half-heartedly tried to do it initially and gave up midway.  I could
> do a more deliberate pass on top of these patches to get the
> formatting cleaner to read than it currently is.

It should be possible to 'pretty-print' json with a few lines of C (or
if you prefer, awk or perl or something) that just tracks the nesting
depth and adds the appropriate indention.

> Of course, the more important question here is whether there's anyone
> who hates the idea of using JSON as the preferred format.  Going
> forward I think we ought to use JSON formats to describe the string
> test outputs as well.

While you're at it, can you change that hideous malloc_info interface
that outputs xml to use json? ;-)

Rich



More information about the Libc-alpha mailing list