I am getting a strange output because of profiling my code. For the main calculation of code it correctly shows that more that 70% of time has been spent on those parts but there are some other interesting points. The following line takes %5.8
int counter = 0 ; // %5.8 of total time
and the following For loop has less time consumption (nx = 800 & ny=800)! How this is possible? Picture of the profiler result was attached.
Better way to test is to attach the profiler but don't start it yet. (This looks like VS profiler which I know will do this.) Run the code, then start the profiler and run it again (or multiple times). This will give you a much better picture of what the code is doing (unless you're TRYING to measure start-up performance).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With