Soenneker.Benchmarking.Extensions.Summary 11.0.246

Prefix Reserved
dotnet add package Soenneker.Benchmarking.Extensions.Summary --version 11.0.246
                    
NuGet\Install-Package Soenneker.Benchmarking.Extensions.Summary -Version 11.0.246
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Benchmarking.Extensions.Summary" Version="11.0.246" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Benchmarking.Extensions.Summary" Version="11.0.246" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Benchmarking.Extensions.Summary" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Benchmarking.Extensions.Summary --version 11.0.246
                    
#r "nuget: Soenneker.Benchmarking.Extensions.Summary, 11.0.246"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Benchmarking.Extensions.Summary@11.0.246
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Benchmarking.Extensions.Summary&version=11.0.246
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Benchmarking.Extensions.Summary&version=11.0.246
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Benchmarking.Extensions.Summary

A BenchmarkDotNet Summary extension that copies the generated benchmark log into the current TUnit test output.

Installation

dotnet add package Soenneker.Benchmarking.Extensions.Summary

Usage in a TUnit test

using BenchmarkDotNet.Running;
using Soenneker.Benchmarking.Extensions.Summary;

public sealed class BenchmarkTests
{
    [Test]
    public async Task Run_benchmarks()
    {
        BenchmarkDotNet.Reports.Summary summary =
            BenchmarkRunner.Run<SerializationBenchmarks>();

        await summary.OutputSummaryToLog();
    }
}

OutputSummaryToLog() reads Summary.LogFilePath and writes the full file contents to TestContext.Current.Output. This makes BenchmarkDotNet output visible in the TUnit report and CI test logs.

Behavior

  • Outside an active TUnit test, TestContext.Current is null and the method returns without output.
  • A missing, blank, or nonexistent LogFilePath writes a diagnostic message instead of throwing.
  • An empty log file writes an explicit empty-file message.
  • The file is opened with shared read access, so BenchmarkDotNet or another process can still hold it open.
  • Cancellation is checked before and during the asynchronous file read.
  • Passing a null Summary throws ArgumentNullException.

BenchmarkDotNet logs can contain machine, runtime, path, and benchmark metadata. Review that content before publishing TUnit output from a public CI job.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Benchmarking.Extensions.Summary:

Package Downloads
Soenneker.Tests.Benchmark

A base class providing a reusable BenchmarkDotNet configuration for benchmark tests.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.246 0 12/6/2026
11.0.245 74 12/5/2026
11.0.244 105 12/4/2026
11.0.243 102 12/3/2026
11.0.242 59 12/3/2026
11.0.241 118 12/3/2026
11.0.240 77 12/3/2026
11.0.239 58 12/3/2026
11.0.238 73 12/2/2026
11.0.237 73 12/2/2026
11.0.236 53 12/2/2026
11.0.234 91 12/2/2026
11.0.233 160 12/2/2026
11.0.232 109 12/2/2026
11.0.231 120 12/1/2026
11.0.230 104 12/1/2026
11.0.229 127 12/1/2026
11.0.228 130 12/1/2026
11.0.227 118 12/1/2026
11.0.226 154 11/30/2026
Loading failed

Update dependency TUnit.Core to 1.90.6 (#256)