aboutsummaryrefslogtreecommitdiff
path: root/benchtests
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2018-08-11 18:45:03 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2018-08-11 18:55:07 +0530
commit44727aec4fc260331cf52fa752223dcf39607a0a (patch)
tree1b07608094c24e28ea3ea6a796a6f852e3a00b41 /benchtests
parent7b7adbd8d476d90b9c57bf540c2a2900c689039f (diff)
downloadglibc-44727aec4fc260331cf52fa752223dcf39607a0a.zip
glibc-44727aec4fc260331cf52fa752223dcf39607a0a.tar.gz
glibc-44727aec4fc260331cf52fa752223dcf39607a0a.tar.bz2
[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.
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/bench-skeleton.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchtests/bench-skeleton.c b/benchtests/bench-skeleton.c
index 666212a..4fc1827 100644
--- a/benchtests/bench-skeleton.c
+++ b/benchtests/bench-skeleton.c
@@ -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);