[Issue 18627] std.complex is a lot slower than builtin complex types at number crunching
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 24 01:06:50 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=18627
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #16 from Iain Buclaw <ibuclaw at gdcproject.org> ---
cfloat_unary_add: 15 secs, 195 ms, 935 μs, and 5 hnsecs
std_cfloat_unary_add: 2 secs, 491 ms, 834 μs, and 9 hnsecs
cfloat_unary_sub: 14 secs, 926 ms, 587 μs, and 6 hnsecs
std_cfloat_unary_sub: 4 secs, 858 ms, 349 μs, and 4 hnsecs
cfloat_binary_add: 22 secs, 363 ms, 951 μs, and 9 hnsecs
std_cfloat_binary_add: 5 secs, 403 ms, 108 μs, and 9 hnsecs
cfloat_binary_sub: 22 secs, 236 ms, and 902 μs
std_cfloat_binary_sub: 5 secs, 266 ms, 697 μs, and 6 hnsecs
cfloat_binary_mul: 24 secs, 858 ms, 63 μs, and 7 hnsecs
std_cfloat_binary_mul: 7 secs, 186 ms, 291 μs, and 8 hnsecs
cfloat_binary_div: 30 secs, 225 ms, 114 μs, and 4 hnsecs
std_cfloat_binary_div: 17 secs, 900 ms, 164 μs, and 6 hnsecs
cfloat_binary_div(FastMath): 29 secs, 230 ms, 821 μs, and 5 hnsecs
std_cfloat_binary_div(FastMath): 12 secs, 208 ms, 118 μs, and 7 hnsecs
cdouble_unary_add: 2 secs, 788 ms, 525 μs, and 6 hnsecs
std_cdouble_unary_add: 2 secs, 922 ms, 224 μs, and 1 hnsec
cdouble_unary_sub: 2 secs, 502 ms, and 734 μs
std_cdouble_unary_sub: 2 secs, 915 ms, 203 μs, and 9 hnsecs
cdouble_binary_add: 2 secs, 869 ms, 820 μs, and 1 hnsec
std_cdouble_binary_add: 3 secs, 108 ms, 545 μs, and 4 hnsecs
cdouble_binary_sub: 2 secs, 836 ms, 796 μs, and 5 hnsecs
std_cdouble_binary_sub: 3 secs, 159 ms, 209 μs, and 3 hnsecs
cdouble_binary_mul: 4 secs, 785 ms, 197 μs, and 6 hnsecs
std_cdouble_binary_mul: 5 secs, 197 ms, 572 μs, and 9 hnsecs
cdouble_binary_div: 14 secs, 238 ms, 332 μs, and 6 hnsecs
std_cdouble_binary_div: 15 secs, 933 ms, 301 μs, and 8 hnsecs
cdouble_binary_div(FastMath): 10 secs, 700 ms, and 32 μs
std_cdouble_binary_div(FastMath): 11 secs, 8 ms, 868 μs, and 5 hnsecs
creal_unary_add: 8 secs, 183 ms, 254 μs, and 3 hnsecs
std_creal_unary_add: 14 secs, 72 ms, 96 μs, and 2 hnsecs
creal_unary_sub: 8 secs, 425 ms, 681 μs, and 9 hnsecs
std_creal_unary_sub: 10 secs, 854 ms, 312 μs, and 8 hnsecs
creal_binary_add: 3 minutes, 50 secs, 877 ms, 637 μs, and 6 hnsecs
std_creal_binary_add: 3 minutes, 57 secs, 397 ms, 952 μs, and 4 hnsecs
creal_binary_sub: 4 minutes, 4 secs, 982 ms, 715 μs, and 2 hnsecs
std_creal_binary_sub: 4 minutes, 11 secs, 485 ms, 74 μs, and 8 hnsecs
creal_binary_mul: 11 minutes, 31 secs, 328 ms, 600 μs, and 7 hnsecs
std_creal_binary_mul: 11 minutes, 46 secs, 26 ms, 451 μs, and 2 hnsecs
creal_binary_div: 20 minutes, 48 secs, 778 ms, and 747 μs
std_creal_binary_div: 20 minutes, 2 secs, 439 ms, and 535 μs
creal_binary_div(FastMath): 18 minutes, 38 secs, 613 ms, 679 μs, and 6 hnsecs
std_creal_binary_div(FastMath): 18 minutes, 42 secs, 400 ms, 343 μs, and 7
hnsecs
--
More information about the Digitalmars-d-bugs
mailing list