View previous topic :: View next topic |
Author |
Message |
KaiGillmann
Joined: 17 Nov 2007 Posts: 2 Location: Fulda, Germany
|
Posted: Sat Nov 17, 2007 7:35 pm Post subject: D Performance |
|
|
Hi,
the whole day long i playd around with D. I am searching for a language as simple as Java but as powerful as C / C++ and i think D is / can be the one i am searching for.
I did an easy floating-point-test with C++, D and Java, with and without optimizations. C++ was the fastest one, then Java and the slowest was D.
I know floating point operations are not the only decision if a programming-language and / or compiler produces fast code and may be iam not a good tester but my Question is, what about the performance of D in future? will there be improvements?
Thanx for answer.
Kai |
|
Back to top |
|
|
ShprotX
Joined: 28 Aug 2007 Posts: 24 Location: Ukraine
|
Posted: Sun Nov 18, 2007 6:01 am Post subject: |
|
|
Take a look at the binary using disassembler and, maybe, you will understand why it happens.
IMHO, in the future productivity will increase through improved compiler. |
|
Back to top |
|
|
KaiGillmann
Joined: 17 Nov 2007 Posts: 2 Location: Fulda, Germany
|
Posted: Sun Nov 18, 2007 5:19 pm Post subject: |
|
|
Thanks much for the reply.
I will disassemble the binaries as soon as I have time to do it.
Does anyone have more information? I would be very grateful.
Thanks much.
Kai |
|
Back to top |
|
|
torhu
Joined: 30 Mar 2006 Posts: 56
|
Posted: Sun Nov 18, 2007 7:09 pm Post subject: |
|
|
It's hard to help without knowing exactly what you did. But you might try using GDC instead of DMD, as it optimizes better in some cases. |
|
Back to top |
|
|
Destructionator
Joined: 17 Sep 2007 Posts: 9 Location: New York State
|
Posted: Sun Nov 18, 2007 9:36 pm Post subject: |
|
|
Also, make sure you remember to pass the right flags to the D compiler to optimize. (dmd -O -release file.d)
If your code is small, would you mind posting it here, and the command lines you used to compile it, so we can see it for ourselves? |
|
Back to top |
|
|
|