Hacker News new | ask | show | jobs
by sagiocean 1926 days ago
Hi Jamdrese, Need one urgent help for memtest Can you please share your code. I want to test it on my system?

I got your reference from below;

jandrese on Dec 1, 2014 | parent | favorite | on: Memcpy vs. memmove

It's fun to benchmark memmove and memcpy on a box to see if memcpy has more optimizations or not. On Linux x86_64 gcc memcpy is usually twice as fast when you're not bound by cache misses, while both are roughly the same on FreeBSD x86_64 gcc. Linux (2.4Ghz Xeon X3430):

./memtest 10000 1000000

memcpy took 0.575571 seconds

memmove took 1.082038 seconds

FreeBSD (2.0Ghz AMD Athlon64 3000):

./memtest 10000 1000000

memcpy took 1.487334 seconds

memmove took 1.442741 seconds

1 comments

There's not much to it.

https://pastebin.com/Xt9miQLC

Thanks a lot...Jandrese.. Do you've make file for this
Never mind. I figured out... Thanks a lot for quick response