Skip to main content

Setup 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

Mock behavior configuration (returns, matchers):

LibraryMeanErrorStdDevAllocated
TUnit.Mocks478.4 ns5.27 ns4.93 ns2.01 KB
Imposter889.8 ns10.69 ns10.00 ns6.12 KB
Mockolate374.7 ns2.54 ns2.37 ns1.65 KB
Moq304,474.6 ns3,966.89 ns3,516.55 ns28.52 KB
NSubstitute5,426.6 ns20.09 ns18.79 ns9.01 KB
FakeItEasy7,549.8 ns57.24 ns50.74 ns10.56 KB

Multiple

LibraryMeanErrorStdDevAllocated
TUnit.Mocks674.3 ns5.89 ns5.51 ns2.59 KB
Imposter1,580.0 ns19.93 ns18.64 ns10.59 KB
Mockolate635.7 ns4.40 ns4.12 ns2.6 KB
Moq87,700.7 ns868.89 ns770.25 ns16.53 KB
NSubstitute11,565.6 ns43.29 ns36.15 ns20.31 KB
FakeItEasy7,411.6 ns51.17 ns42.73 ns11.82 KB

🎯 Key Insights

This benchmark compares TUnit.Mocks (source-generated) against runtime proxy-based mocking libraries for mock behavior configuration (returns, matchers).


Methodology

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

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