www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Found on proggit: simple treap language benchmark, includes D

reply Joakim <dlang joakim.fea.st> writes:
D does well, comes in second on Mac/Win/linux:

https://github.com/frol/completely-unscientific-benchmarks
https://www.reddit.com/r/programming/comments/8jbfa7/naive_benchmark_treap_implementation_of_c_rust/
May 19 2018
next sibling parent reply Nerve <nervecenter7 gmail.com> writes:
On Saturday, 19 May 2018 at 15:09:38 UTC, Joakim wrote:
 D does well, comes in second on Mac/Win/linux:

 https://github.com/frol/completely-unscientific-benchmarks
 https://www.reddit.com/r/programming/comments/8jbfa7/naive_benchmark_treap_implementation_of_c_rust/
The results in these tests are blazing fast, but they all forego the GC for manual allocation. In the Issues section of the repo, I included some simple, vanilla D translated from their Java implementation and made for use with the GC and runtime. I also included some raw sample times that are competitive with desktop i7 times of Rust and ref-counted C++ on...get this...a much slower laptop i5. This sort of thing needs to be shouted from the rooftops by the Foundation. I'll see if I can get it included so they can test it on their specific setup.
May 20 2018
parent reply Nerve <nervecenter7 gmail.com> writes:
On Sunday, 20 May 2018 at 15:30:37 UTC, Nerve wrote:
 I'll see if I can get it included so they can test it on their 
 specific setup.
Sorry for double-posting, but I've included a GC-enabled solution based on their Java solution, and have a pull request up that's a bit more idiomatic, pulling unnecessary static methods out as functions. It scores VERY HIGH across the board on their "naive" benchmark. High expressivity, high maintainability, extremely fast, moderately low memory usage. This is the sort of thing that will convince people of D. Benchmarks involving GC and lots of allocations that still have it way ahead of the competition, with clean code! For any other language, this is front-page, first-glance material.
May 21 2018
parent drug <drug2004 bk.ru> writes:
21.05.2018 17:11, Nerve пишет:
 
 Sorry for double-posting, but I've included a GC-enabled solution based 
 on their Java solution, and have a pull request up that's a bit more 
 idiomatic, pulling unnecessary static methods out as functions.
 
 It scores VERY HIGH across the board on their "naive" benchmark. High 
 expressivity, high maintainability, extremely fast, moderately low 
 memory usage.
 
 This is the sort of thing that will convince people of D. Benchmarks 
 involving GC and lots of allocations that still have it way ahead of the 
 competition, with clean code! For any other language, this is 
 front-page, first-glance material.
Thank you for your efforts!
May 21 2018
prev sibling parent reply ixid <nuaccount gmail.com> writes:
On Saturday, 19 May 2018 at 15:09:38 UTC, Joakim wrote:
 D does well, comes in second on Mac/Win/linux:

 https://github.com/frol/completely-unscientific-benchmarks
 https://www.reddit.com/r/programming/comments/8jbfa7/naive_benchmark_treap_implementation_of_c_rust/
Can any experts improve this to come first? That's how you win hearts and minds.
May 21 2018
parent rikki cattermole <rikki cattermole.co.nz> writes:
On 22/05/2018 3:31 AM, ixid wrote:
 On Saturday, 19 May 2018 at 15:09:38 UTC, Joakim wrote:
 D does well, comes in second on Mac/Win/linux:

 https://github.com/frol/completely-unscientific-benchmarks
 https://www.reddit.com/r/programming/comments/8jbfa7/naive_benchmark_treap_imple
entation_of_c_rust/ 
Can any experts improve this to come first? That's how you win hearts and minds.
I want to see assembly of D and C++ tuned versions. Something has got to be different.
May 21 2018