Benchmark of D against other languages

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 1 18:35:59 PDT 2015


On Wednesday, 1 April 2015 at 22:49:55 UTC, Martin Nowak wrote:
> On 03/31/2015 08:20 PM, cym13 wrote:
>> https://github.com/kostya/benchmarks
>
> We made a massive jump towards the upper ranks.
>
> #4  ¹
> https://github.com/kostya/benchmarks/tree/master/brainfuck#user-content-benchmark-benchb
> #2
> https://github.com/kostya/benchmarks/tree/master/brainfuck#user-content-benchmark-mandelb
> #1
> https://github.com/kostya/benchmarks/tree/master/base64#user-content-benchmark
> #13 ²
> https://github.com/kostya/benchmarks/tree/master/json#user-content-benchmark
> #2  ³
> https://github.com/kostya/benchmarks/tree/master/matmul#user-content-benchmark
> #4
> https://github.com/kostya/benchmarks/tree/master/havlak#user-content-benchmark
>
> https://github.com/kostya/benchmarks
>
> ¹: Nim outperforms anything else on brainfuck by a large margin 
> because
> it has the fastest hash table (open addressing, storing values 
> in head).
> https://github.com/Araq/Nim/blob/57fa8c6d3f535acc79ef8a67a6ef7aef0c7519da/lib/pure/collections/tables.nim#L73
>
> ²: D would probably be #1 with the json pull parser from
> http://code.dlang.org/packages/std_data_json.
>
> ³: Places 2, 3, and 4 thanks to std.numeric.dotProduct. An 
> optimized
> dense matrix multiplication would get us #1.

the benchmark pointed out two sore areas in D(AA and std.json,) 
would be nice to see AA get updated as I often completely avoid 
using the built-in AA.


More information about the Digitalmars-d mailing list