benchtests: Updated json bench-variant attribute
authorNaohiro Tamura <naohirot@fujitsu.com>
Mon, 8 Feb 2021 07:59:53 +0000 (07:59 +0000)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 10 Feb 2021 03:20:26 +0000 (08:50 +0530)
This patch updates json "bench-variant" attribute of "bench-memset.c"
to "default" so that the script "benchtests/scripts/plot_strings.py"
can generate a file "memset_time_default_linear.png".
Without this patch, the script "benchtests/scripts/plot_strings.py"
generates a file "memset_time__linear.png" which has inconsistent form
with "memcpy_time_default_linear.png" and
"memmove_time_default_linear.png".

benchtests/bench-memset.c

index a84e781..1174900 100644 (file)
@@ -97,7 +97,7 @@ test_main (void)
 
   json_attr_object_begin (&json_ctx, "functions");
   json_attr_object_begin (&json_ctx, TEST_NAME);
-  json_attr_string (&json_ctx, "bench-variant", "");
+  json_attr_string (&json_ctx, "bench-variant", "default");
 
   json_array_begin (&json_ctx, "ifuncs");
   FOR_EACH_IMPL (impl, 0)