3 ms·
What memtest are you using? This one: https://github.com/UK-MAC/WMTools/blob/master/tests/memtest.c https://github.com/UK-MAC/WMTools/blob/master/tests/memtest
by lbenes 12y ago
What memtest are you using? This one:
https://github.com/UK-MAC/WMTools/blob/master/tests/memtest.c https://github.com/UK-MAC/WMTools/blob/master/tests/memtest....
- jandrese 12y agoIt's one I wrote myself to test this very thing after reading the memmove manpage. I was wondering why you would ever use memcpy unless it had a big performance advantage, so I wrote a micro-benchmark to see. If you are really interested, I can put my benchmark program up somewhere. Additional findings: Unsurprisingly using clang instead of gcc does not affect performance on FreeBSD or Linux.
- lbenes 12y agoYes please. If you want share it, I'm curious how different compilers and architectures handle memmove vs memcpy.