The Runtime Diagnostics page includes a useful Performance Test feature designed to simulate intensive resource usage and measure the time it takes to complete the operation.
On this page:
The Performance Test can be accessed in Runtime > Runtime Diagnostics > Run Tools > "Performance Test"
The code snippet below is executed when this feature runs. It performs multiple memory allocations within a repetitive loop, creating and filling large blocks of data in each iteration to measure the Designer performance.
DateTime t = DateTime.Now; for (int x = 0; x < 100; x++) { int size = 1024 * 1024; int[] memAlloc = new int[size]; for (int i = 0; i < size; i++) { memAlloc[i] = i; } } result = DateTime.Now - t; |
The expected result value is under 300 ms.
In this section: