Benchmarking mir.ndslice + lubeck against numpy and Julia
arine123445128843 at gmail.com
Sun Jan 12 05:08:18 UTC 2020
On Sunday, 12 January 2020 at 05:05:15 UTC, Arine wrote:
> I ran your dot product test for python and D.
> $ python main.py
> $ ./main
> [100 ms, 916 ╬╝s, and 2 hnsecs] // 0.1009162 secs
> Some things I guess. Dub is horrible. The defaults are
> horrible. A lot of the way it functions is horrible. So I'm not
> surprised you got worse results, even though it seems you have
> a faster PC than me.
> dub build --config=release --compiler=ldc2 --arch=x86_64
> --single main.d
> Dub sometimes defaults to x86, cause why not, it's not a dying
> platform. Which can give worse codegen. It also default to
> debug, cause, you know if you run something through dub it's
> obviously being run through a debugger.
ops `--config=release` should be `--build=release` cause you know
dub doesn't have confusing argument names and a really horrible
documentation page that literally just repeats all the same
arguments 20 times.
More information about the Digitalmars-d