dotnet / dotnet/BenchmarkDotNet

Generating Reports Fails

Open
#2,089 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11.5k
Forks
1.1k
Avg merge
6d 11h
Merged PRs (30d)
12

Description

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://github.com/dotnet/BenchmarkDotNet/files/9438282/dotNetTips.CodePerf.Example.App.BenchmarkTests.GeneralCollectionBenchmark-20220826-214244.log)

![ScreenGrab](https://user-images.githubusercontent.com/15676130/187038531-bf7cd0be-6298-467e-8f3b-c27d5a7f83ef.jpg)

https://user-images.githubusercontent.com/15676130/187038392-38547110-351b-46db-8217-7d6879cb7721.mp4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.