www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - std.benchmark SAOC

reply Visan Tudor-Cosmin <tudorcosmin.visan gmail.com> writes:
Hello,

I was looking at this project for SAOC, and thinking about how to 
best approach it.
If I understand it correctly, it would require that every 
function in std would have a corresponding unit-test which would 
measure the time it takes, and subsequently check the performance 
impact when the function is changed.
Would this be the correct approach, or have I misunderstood the 
issue?

Thanks,
Visan Tudor-Cosmin
Aug 12 2019
parent Robert Schadek <rschadek symmetryinvestments.com> writes:
That is pretty much accurate.
Additionally, the run times should be persisted and nicely 
presented.

I did a tiny bit in 
https://github.com/burner/phobos/commit/8841a53b3d460b17e8aa81b33b84d719809c587b

have a look into the file in it std/stringbenchmarks.d
Aug 13 2019