Skip to content

Instantly share code, notes, and snippets.

@carun
Created June 14, 2018 05:59
Show Gist options
  • Save carun/f7c2c200b1be20d0a9489296d6601332 to your computer and use it in GitHub Desktop.
Save carun/f7c2c200b1be20d0a9489296d6601332 to your computer and use it in GitHub Desktop.
memcpyd output for Mike Franklin
Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
16 GB RAM
---
dmd memcpyd.d
./memcpyd
size memcpyC memcpyD
1 38096 26341
2 40524 27605
4 37365 25000
8 37912 27469
16 40431 21380
32 34230 31197
64 31745 29437
128 47134 41268
256 47288 66491
512 76284 106828
1024 112214 230148
2048 204542 377297
4096 449297 785494
8192 1280513 1275490
16384 2671688 2642888
32768 8037614 7992283
65536 15970111 15909741
size memcpyC memcpyD
1 31862 21382
1 31765 21267
1 34696 21300
2 37368 21694
2 34581 21329
4 34631 21786
4 37412 21986
8 34608 21175
8 36464 21287
4 37504 21128
8 37673 21259
16 38496 25882
---
dmd -O -m64 memcpyd.d
size memcpyC memcpyD
1 36937 24387
2 38588 25034
4 35681 26666
8 35866 27180
16 39398 16565
32 28819 14361
64 30286 19213
128 43374 29026
256 43302 51752
512 65982 97635
1024 112104 218039
2048 203940 370647
4096 408916 703311
8192 1258911 1261754
16384 2629511 2644776
32768 8027260 8002202
65536 16264949 16854951
size memcpyC memcpyD
1 30001 14112
1 33424 16297
1 28485 13008
2 34466 13809
2 39413 18975
4 40930 14393
4 39742 17279
8 39149 17053
8 37485 11458
4 36188 14580
8 30533 11821
core.exception.AssertError@memcpyd.d(9): Assertion failure
----------------
??:? _d_assertp [0xaf845ecd]
??:? pure nothrow @nogc void memcpyd.verify!(real).verify(const(real), const(real)) [0xaf843e34]
??:? void memcpyd.test!(real).test() [0xaf842f68]
??:? _Dmain [0xaf8300e1]
---
ldc2 -O4 memcpyd.d
size memcpyC memcpyD
1 0 0
2 0 0
4 0 0
8 0 0
16 927 0
32 1633 0
64 1612 0
128 3147 0
256 28755 0
512 60292 0
1024 104434 218721
2048 195626 342359
4096 391143 722696
8192 1340082 1335773
16384 2618607 2569352
32768 8039189 8016203
65536 16365093 16329580
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
core.exception.AssertError@memcpyd.d(9): Assertion failure
----------------
??:? [0xaa01ddfe]
??:? [0xaa0252aa]
??:? [0xaa00fd12]
??:? [0xaa0070ed]
??:? [0xa9fd9cfe]
??:? [0xa9fd41b0]
??:? [0xaa00fb7e]
??:? [0xaa00fb3d]
??:? [0xaa00fa34]
??:? __libc_start_main [0x56f11b96]
??:? [0xa9fd4009]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment