Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 28, 2014 Benchmarking build times | ||||
---|---|---|---|---|
| ||||
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 |
August 28, 2014 Re: Benchmarking build times | ||||
---|---|---|---|---|
| ||||
Posted in reply to Scott Wilson | 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
|
August 29, 2014 Re: Benchmarking build times | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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 |
August 29, 2014 Re: Benchmarking build times | ||||
---|---|---|---|---|
| ||||
Posted in reply to Scott Wilson | 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 |
Copyright © 1999-2021 by the D Language Foundation