Skip to main content

Verification 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

Verifying mock method calls:

LibraryMeanErrorStdDevAllocated
TUnit.Mocks670.78 ns13.384 ns25.138 ns2864 B
Imposter660.06 ns4.475 ns4.186 ns4688 B
Mockolate391.26 ns3.383 ns2.641 ns2240 B
Moq340,931.18 ns3,294.622 ns2,920.597 ns24325 B
NSubstitute6,154.22 ns20.388 ns18.073 ns10176 B
FakeItEasy7,082.79 ns16.599 ns14.715 ns10722 B

Never

LibraryMeanErrorStdDevAllocated
TUnit.Mocks46.52 ns0.459 ns0.430 ns304 B
Imposter302.21 ns2.174 ns1.927 ns2400 B
Mockolate227.28 ns0.723 ns0.604 ns1240 B
Moq87,296.53 ns347.520 ns325.071 ns6918 B
NSubstitute3,563.57 ns7.628 ns6.369 ns7088 B
FakeItEasy3,607.23 ns16.700 ns13.945 ns5210 B

Multiple

LibraryMeanErrorStdDevAllocated
TUnit.Mocks1,096.19 ns1.343 ns1.190 ns4176 B
Imposter1,692.78 ns2.185 ns1.825 ns11192 B
Mockolate1,123.05 ns7.598 ns6.735 ns5376 B
Moq469,959.98 ns1,607.548 ns1,425.049 ns34699 B
NSubstitute10,952.86 ns42.127 ns35.178 ns16762 B
FakeItEasy13,670.33 ns111.301 ns92.941 ns19233 B

🎯 Key Insights

This benchmark compares TUnit.Mocks (source-generated) against runtime proxy-based mocking libraries for verifying mock method calls.


Methodology

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

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