testsuite: Reduce memcpy_speed loops
authorDoug Nazar <nazard@nazar.ca>
Sat, 14 Sep 2019 00:24:28 +0000 (20:24 -0400)
committerDoug Nazar <nazard@nazar.ca>
Sat, 14 Sep 2019 00:24:28 +0000 (20:24 -0400)
Even with the PowerPC copy improvements we still exceed the 30s
time limit.

Power8 has an 8MB L3 cache, resulting in a total copy of ~9GB.

Before PowerPC copy: ~48s
 After PowerPC copy: ~38s
                now: ~18s

testsuite/memcpy_speed.c

index a1a69f1..4cf1c39 100644 (file)
@@ -102,7 +102,7 @@ main(int argc, char *argv[])
     max = 140;
   }
 
-  for(i=0;i<max;i++){
+  for(i=0;i<max;i+=2){
     double x = i*0.1 + 6.0;
     int size = pow(2.0, x);