std.benchmark ready for review. Manager sought after

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Apr 7 22:41:33 PDT 2012


On 4/7/12 11:45 PM, Vladimir Panteleev wrote:
> On Sunday, 8 April 2012 at 03:25:16 UTC, Andrei Alexandrescu wrote:
>> Hello,
>>
>>
>> I finally found the time to complete std.benchmark. I got to a very
>> simple API design, starting where I like it: one line of code.
>
> Nice, some comments:
>
> 1) Is it possible to do something about the "kilonanoseconds", and print
> the two-letter SI time abbreviation instead (μs/ns/ms/s/...)?

Cool.

> 2) The meaning of "epoch" in this context is unfamiliar to me:
>
>> Measurement is done in epochs. For each function benchmarked, the
>> smallest time is taken over all epochs.

To me too :o).

> 3) "benchmark_relative_file read" should be replaced with a language
> construct. E.g. a function call like relativeBenchmark("file read"), or
> an enum value like getopt's.

No can do. Need a function name-based convention so we can automate 
scheduleForBenchmarking.

> 4) There is a TODO in benchmarkSuspend's example.

Will destroy.


Andrei




More information about the Digitalmars-d mailing list