D looses in speed to Common Lisp
weaselcat via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 11 14:35:49 PDT 2015
On Monday, 11 May 2015 at 21:30:20 UTC, weaselcat wrote:
> On Monday, 11 May 2015 at 21:15:33 UTC, Dzhon Smit wrote:
>> ...
>
> time sbcl --dynamic-space-size 4GB --script fib.lisp
> 0
> 1.16user 1.49system 0:02.67elapsed 99%CPU (0avgtext+0avgdata
> 1658860maxresident)k
>
> ldc -O5 -release -boundscheck=off fib.d
> $ time ./fib
> 0
> 1.33user 0.81system 0:02.15elapsed 99%CPU (0avgtext+0avgdata
> 1230712maxresident)k
oh, and if you make the arrays static it should be turned into
CTFE.
More information about the Digitalmars-d
mailing list