https://github.com/rofl0r/memcpy-test
testing speed of memcpy implementations
https://github.com/rofl0r/memcpy-test
Last synced: over 1 year ago
JSON representation
testing speed of memcpy implementations
- Host: GitHub
- URL: https://github.com/rofl0r/memcpy-test
- Owner: rofl0r
- Created: 2012-08-03T23:08:58.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2022-05-07T21:51:10.000Z (about 4 years ago)
- Last Synced: 2025-04-11T05:51:59.835Z (over 1 year ago)
- Language: C
- Size: 23.4 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
pick one of the memcpy implementations or add a file containing a memcpy function called
`mymemcpy`.
it needs to be called this way in order to keep optimizations/system libc from
interfering.
then run
`CC=gcc OPTS="-O3 -funroll-all-loops" ./compare.py impl1.c [impl2.s ... implX.c]`
(both .s and .c suffixes are supported)
if you use a modern CPU using speedstep, you can get much better results by
putting the CPU into "userspace" governor and then lock the CPU freq to 1 GHz.