digitalmars.D - std.benchmark SAOC
- Visan Tudor-Cosmin (11/11) Aug 12 2019 Hello,
- Robert Schadek (6/6) Aug 13 2019 That is pretty much accurate.
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
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