Parameterized unit testing and benchmarking of phobos

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 9 09:36:33 PDT 2014


Am Thu, 09 Oct 2014 08:11:33 -0700
schrieb Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org>:

> On 10/9/14, 1:01 AM, Robert burner Schadek wrote:
> > On Thursday, 9 October 2014 at 00:13:25 UTC, Andrei Alexandrescu
> > wrote:
> >
> >> If you love your braces you gotta love your indentation. They come
> >> together... -- Andrei
> >
> > I guess you're right, but back to the topic.
> > Has anyone tried something similar for phobos? (I couldn't find
> > anything) Does anyone else consider the idea worth pursuing?
> 
> Not yet but I think we need to create a task and a plan for adding
> the old std.benchmark to std.experimental.benchmark, and use it
> internally for Phobos. -- Andrei

+1, std.benchmark should be revived. There's still the constructor
cycles issue but we can probably find workarounds. In the worst
case we do not generate constructors but runBenchmark functions and
call these manually via some runAllBenchmarks("std.xyz", "std.abc")
template magic)


More information about the Digitalmars-d mailing list