Skip to main content

Callback Benchmark

Last Updated

This benchmark was automatically generated on 2026-05-13 from the latest CI run.

Environment: Ubuntu Latest • .NET SDK 10.0.300

📊 Results

Callback registration and execution:

LibraryMeanErrorStdDevAllocated
TUnit.Mocks691.4 ns13.41 ns19.65 ns2.98 KB
Imposter529.7 ns10.48 ns20.18 ns2.66 KB
Mockolate404.0 ns4.09 ns3.63 ns1.91 KB
Moq187,818.0 ns862.56 ns764.63 ns13.14 KB
NSubstitute4,835.2 ns32.04 ns26.76 ns7.93 KB
FakeItEasy5,631.2 ns59.31 ns55.48 ns7.44 KB

with args

LibraryMeanErrorStdDevAllocated
TUnit.Mocks799.1 ns13.40 ns12.54 ns3.06 KB
Imposter582.3 ns11.63 ns16.31 ns2.82 KB
Mockolate457.7 ns8.91 ns8.33 ns1.95 KB
Moq196,504.7 ns1,566.10 ns1,464.93 ns13.73 KB
NSubstitute5,381.0 ns32.83 ns29.10 ns8.53 KB
FakeItEasy6,758.0 ns74.43 ns65.98 ns9.4 KB

🎯 Key Insights

This benchmark compares TUnit.Mocks (source-generated) against runtime proxy-based mocking libraries for callback registration and execution.


Methodology

View the mock benchmarks overview for methodology details and environment information.

Last generated: 2026-05-13T03:26:48.570Z