Performance testing

Here’s a C# template for measuring the performance of a whole file. It runs twenty consecutive solutions and measures the total time it takes. This will include viewport and canvas redraw times.

You can make it more specific to certain components by not running a GH_Document.NewSolution(true), but by specifically expiring certain components you are interested in and then running GH_Document.NewSolution(false).

profiler.gh (8.7 KB)