]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[benchtests] Add mandatory attributes to workload tests
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Sat, 11 Aug 2018 13:15:03 +0000 (18:45 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Sat, 11 Aug 2018 13:25:07 +0000 (18:55 +0530)
Add the duration and iterations attributes to the workloads tests to
make the json schema parser happy

* benchtests/bench-skeleton.c (main): Add duration and
iterations attributes.

ChangeLog
benchtests/bench-skeleton.c

index 64ebb9fbfb505d3bec62ce5bb81d526ba810914a..9c7bb73ff824f02df28723d831d363eddfc45e81 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * benchtests/bench-skeleton.c (main): Add duration and
+       iterations attributes.
+
 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
 
        regex: Gnulib unibyte RRI uses bytes not chars
index 666212a64fd1f4d15ab03ca980e27501a24c55b2..4fc1827ca570c11656b1e896deb24ab003cef459 100644 (file)
@@ -144,6 +144,8 @@ main (int argc, char **argv)
 
       if (is_bench)
        {
+         json_attr_double (&json_ctx, "duration", throughput + latency);
+         json_attr_double (&json_ctx, "iterations", 2 * d_total_i);
          json_attr_double (&json_ctx, "reciprocal-throughput",
                            throughput / d_total_i);
          json_attr_double (&json_ctx, "latency", latency / d_total_i);