Encouraging preliminary results implementing memcpy in D
Antonio Corbi
acrb at ggmail.com
Wed Jun 13 08:22:50 UTC 2018
On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote:
> I had a little fun today kicking the crap out of C's memcpy
> with a D implementation.
>
> https://github.com/JinShil/memcpyD
>
> Request for help: I don't have a Linux system running on real
> hardware at this time, nor do I have a wide range of platforms
> and machines to test with. If you'd like to help me with this
> potentially foolish endeavor, please run the program on your
> hardware and send me the results.
Hi Mike,
These are my results running your program under archlinux x86_64
with the zen-kernel 4.17.1, the hardware is powered by an ancient
"Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz" with 4GB of ram:
size memcpyC memcpyD
1 67607 56810
2 68105 57638
4 66760 58949
8 66943 61262
16 71937 43821
32 70955 48392
64 111473 54226
128 144784 77165
256 183504 113597
512 289039 180930
1024 450526 1314835
2048 782029 1890236
4096 1627622 3165319
8192 2751701 5614202
16384 6361074 11484517
32768 30931212 42805529
65536 61878379 86000892
size memcpyC memcpyD
1 66796 44745
1 66773 44343
1 66780 44157
2 66769 44370
2 66792 44529
4 66776 44298
4 66775 44412
8 66766 44409
8 70945 44359
4 66804 44367
8 71007 44432
16 75210 50656
More information about the Digitalmars-d-announce
mailing list