mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
[benchtests] Add mandatory attributes to workload tests
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.
This commit is contained in:
parent
7b7adbd8d4
commit
44727aec4f
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user