The worst-case garbage collection on Mono

Hi, I want to find out the longest time it takes to call a method or to create an object.

I was thinking of something like a call GC.Collect()before creating an object or during a method or calling some destructors.

Does anyone have any clues or ideas to identify some (or) worst case scenarios?

Regards

+3
source share
1 answer

Watch this stream . Put the response code in a loop and write down the lowest and highest time that enters. But it may not be that interesting. Here is a more efficient work:

Run the code in your real application to feel the real life scenario

or

, , 100000 ,   , ,

+1

Source: https://habr.com/ru/post/1790642/


All Articles