projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28072b3
)
testsuite: Reduce memcpy_speed loops
author
Doug Nazar
<nazard@nazar.ca>
Sat, 14 Sep 2019 00:24:28 +0000
(20:24 -0400)
committer
Doug 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
patch
|
blob
|
history
diff --git
a/testsuite/memcpy_speed.c
b/testsuite/memcpy_speed.c
index
a1a69f1
..
4cf1c39
100644
(file)
--- a/
testsuite/memcpy_speed.c
+++ b/
testsuite/memcpy_speed.c
@@
-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);