(3/10/2003) Here are the shootout benchmarks that have been ported to D so far:
Note that most of these are just quick ports I did. They may not take advantage of D's syntax or be optimized yet.
Below are some benchmark results for Windows. Hardware is a 2.2 Ghz P4M 1GB RAM (Dell C840 laptop), running Windows 2000 Professional SP3.
Would the hash scores for D be about the same as C if it were using something like simple_hash.h?
The ary3 benchmark doesn't show much for semi-fast languages because you're almost always memory bandwidth limited. I may post a read-only version of this test at some point.
msvc settings: /Ox
gcc settings: -O3 -pipe -fomit-frame-pointer -mcpu=pentium3
dmd settings: -O -inline -release
csc settings: /o /unsafe
Times are in seconds
|MSVC7||GCC||D||C# CSC||C# MONO|
|wc (KJV Bible repeated 40 times)||1.887||1.648||1.429||3.017|
Here are some benchmark results for Linux:
Serbo-Croatian language by Jovana Milutinovich from WebHostingGeeks.com