Language performance benchmark be updated 2019/11/09
IGotD-
nise at nise.com
Sat Nov 16 16:47:40 UTC 2019
On Saturday, 16 November 2019 at 16:34:58 UTC, Jacob Shtokolov
wrote:
> On Saturday, 16 November 2019 at 16:07:29 UTC, Jacob Shtokolov
> wrote:
>> Haven't tried other tests
>
> Just tried to compile and run Base64
> The results are:
>
> ```
> C: 1.46s, 1.9Mb
> Rust: 1.49s, 2.4Mb
> D LDC2: 1.98s, 4.2Mb
> Golang: 2.89s, 10.9Mb
> C++: 3.18s, 4.8Mb
> ```
>
> This test is closer to the author's numbers, but Rust
> implementation isn't faster than the C implementation on my
> machine.
>
> Golang here is faster than C++. The D version was built with
> bounds checks this time.
Why is C++ doing so badly? Is it because of inefficient usage of
buffers and that it doesn't natively support slices?
More information about the Digitalmars-d
mailing list