www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Benchmarking build times

reply "Scott Wilson" <scott_wilson_3rd yahoo.com> writes:
Hey I want to benchmark speed of D and other languages. I think
I'll use rosetta code. It has functional equivalent code in
several langs.

What is a large program on rosetta? I will copy that program many
times and modify each with sed so the names are abit different.
Then write a makefile and build.


Scott
Aug 28 2014
parent reply "bearophile" <bearophileHUGS lycos.com> writes:
Scott Wilson:

 What is a large program on rosetta?
I answered this post, but I can't see my post. If you compile a long D C-like program you have a smaller compile time compared to compiling a shorter D program that uses std.algorithm and std.range a lot, because of all the templates that need to be compiled. Bye, bearophile
Aug 28 2014
parent reply "Scott Wilson" <scott_wilson_3rd yahoo.com> writes:
I found https://github.com/acmeism/RosettaCodeData. Is it fresh?

To estimate build times I'll concatenate all files into one.
About 6K LOC. Then I'll duplicate that file. Sound good?


Scott

On Thursday, 28 August 2014 at 19:51:22 UTC, bearophile wrote:
 Scott Wilson:

 What is a large program on rosetta?
I answered this post, but I can't see my post. If you compile a long D C-like program you have a smaller compile time compared to compiling a shorter D program that uses std.algorithm and std.range a lot, because of all the templates that need to be compiled. Bye, bearophile
Aug 28 2014
parent "bearophile" <bearophileHUGS lycos.com> writes:
Scott Wilson:

 I found https://github.com/acmeism/RosettaCodeData. Is it fresh?
The most recently update is 5 months ago, but most entries are one year old. So they are not updated. I update the site frequently (perhaps I updated 200-300 entries for 2.066).
 To estimate build times I'll concatenate all files into one.
 About 6K LOC. Then I'll duplicate that file. Sound good?
Some entries are infinite loops, some load external libraries, some can't even compile, some entries use lot of memory to compile, and so on. You will have to comb every program. And most programs contain templates, so if you don't add their main function, nothing gets compiled. Bye, bearophile
Aug 28 2014