Encouraging preliminary results implementing memcpy in D

UnpaidTester UnpaidTester at UnpaidTester.com
Wed Jun 13 15:59:06 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.
>
> Feedback, advise, and pull requests to improve the 
> implementation are most welcome.
>
> Mike

specs
.........................................

(note: tried DMD v2.078.3) > dmd -O  (and got strange assertion 
errors).

(used LDC 1.8.0 instead) > ldc2 -O2

Intel(R) Core(TM) i7 CPU 920  @ 2.67GHz
24GB Mem (Speed: 1066 MT/s)

Kubuntu 18.04 LTS - 4.15.0-23-generic
........................................


results
........................................
size memcpyC memcpyD
1 0 0
2 0 0
4 0 0
8 0 0
16 1247 0
32 1889 0
64 3055 0
128 5040 0
256 91407 0
512 158527 0
1024 253191 870780
2048 474243 1170349
4096 932151 1933045
8192 1894059 3284901
16384 4447945 6122015
32768 18572704 20772417
65536 37470068 40211203

size memcpyC memcpyD
1 0 0
1 0 0
1 0 0
2 0 0
2 0 0
4 0 0
4 0 0
8 0 0
8 0 0
4 0 0
8 0 0
16 0 0

..........................


More information about the Digitalmars-d-announce mailing list