I wonder how fast we'd do

KnightMare black80 at bk.ru
Tue May 28 14:00:56 UTC 2019


> When the blog post released I wrote a few benchmarks. 
> Surprisingly, using
>
> values.map!(x => x*x).sum
>
> was the fastest (faster than v1). It got around to 20 us on my 
> machine.

all code was skipped coz results was unused.
code with using results https://pastebin.com/j0T0MRmA

and d_with_sum was skipped coz
https://forum.dlang.org/thread/wxesgcjznvwpdwpnxnej@forum.dlang.org

after all results will be XXms


More information about the Digitalmars-d mailing list