BenchmarkDotNet
BenchmarkDotNet copied to clipboard
Generating Reports Fails
I have been experiencing an issue where the benchmark tests run, but BenchmarkDotNet failed when generating the reports. At first, I thought it was due to the benchmark test classes having too many methods. I refactored some methods into new classes, but now it's happening with a class with 46 methods. I am testing with .NET 6 and 7. The version of BenchmarkDotNet I am using is 0.13.1.1853.
What I'm seeing is that it creates a zero-length CSV file and just gets stuck there. I let it go for many hours and it never completed. It seems to be doing something since I can see with the Task Manager the CPU and Memory changing. It hovers around 40% CPU and I saw the memory go from about 6 GB to 13 GB.
I don't see an exception being thrown and I don't see anything in the Event Logs.
Below I am attaching, the log file and screen grab from the Task Manager. Please let me know if you need anything else to track this down.
dotNetTips.CodePerf.Example.App.BenchmarkTests.GeneralCollectionBenchmark-20220826-214244.log

https://user-images.githubusercontent.com/15676130/187038392-38547110-351b-46db-8217-7d6879cb7721.mp4
I just found that some of the reports for the other benchmark classes did not generate properly either. I have attached a few of them. dotNetTips.CodePerf.Example.App.BenchmarkTests.LoopingCollectionParallelBenchmark-report.csv
dotNetTips.CodePerf.Example.App.BenchmarkTests.LoopingCollectionBenchmark-report.csv
dotNetTips.CodePerf.Example.App.BenchmarkTests.LoopingCollectionBenchmark-20220826-214156.log