xcompact3d / x3d2

https://xcompact3d.github.io/x3d2
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Split performance measurements from unit tests #35

Open JamieJQuinn opened 7 months ago

JamieJQuinn commented 7 months ago

Currently performance measurements are performed at the end of some unit tests. These slow down the testing cycle and can be pulled out into their own subroutines. This will additionally help identify some common setup code that can be refectored out.

We also need:

semi-h commented 6 months ago

How about running the same set of test programs with an optional argument such as --perf so that when the argument is present the test program calls the subroutine being tested in a loop say a 100 times and reports the performance?

I'm not actually sure how to enable this in ctests or whether if this is possible or not, but if we add this optional argument and loop over the call many times if the argument is present, we can at least do performance tests by hand.