bench-memcpy: Collect data from 2KB to 4KB
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 30 Apr 2021 17:10:47 +0000 (10:10 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 3 May 2021 12:08:22 +0000 (05:08 -0700)
Collect data on memcpy from 2KB to 4KB with the 64-byte increment value.

benchtests/bench-memcpy.c

index 5bddaeb..184495d 100644 (file)
@@ -145,6 +145,14 @@ test_main (void)
 
   do_test (&json_ctx, 0, 0, getpagesize ());
 
+  for (i = 0; i <= 32; ++i)
+    {
+      do_test (&json_ctx, 0, 0, 2048 + 64 * i);
+      do_test (&json_ctx, i, 0, 2048 + 64 * i);
+      do_test (&json_ctx, 0, i, 2048 + 64 * i);
+      do_test (&json_ctx, i, i, 2048 + 64 * i);
+    }
+
   json_array_end (&json_ctx);
   json_attr_object_end (&json_ctx);
   json_attr_object_end (&json_ctx);