From cb5e4aada7f044fc029dd64b31411a23bb09c287 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Sat, 29 Mar 2014 09:37:44 +0530 Subject: Make bench.out in json format This patch changes the output format of the main benchmark output file (bench.out) to an extensible format. I chose JSON over XML because in addition to being extensible, it is also not too verbose. Additionally it has good support in python. The significant change I have made in terms of functionality is to put timing information as an attribute in JSON instead of a string and to do that, there is a separate program that prints out a JSON snippet mentioning the type of timing (hp_timing or clock_gettime). The mean timing has now changed from iterations per unit to actual timing per iteration. --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 9aeb53c..072747b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 2014-03-29 Siddhesh Poyarekar + * benchtests/Makefile (timing-type): New binary. + (bench-clean): Also remove bench-timing-type. + (bench): New target for timing-type. + (bench-func): Print output in JSON format. + * benchtests/bench-skeleton.c (main): Print output in JSON + format. + * benchtests/bench-timing-type.c: New file. + * benchtests/bench-timing.h (TIMING_TYPE): New macro. + (TIMING_PRINT_STATS): Remove. + * benchtests/scripts/bench.py (_print_arg_data): Store variant + name separately. + * benchtests/bench-modf.c: Remove. * benchtests/modf-inputs: New inputs file. -- cgit v1.1