Skip to main content

Verification Benchmark

Last Updated

This benchmark was automatically generated on 2026-03-29 from the latest CI run.

Environment: Ubuntu Latest • .NET SDK 10.0.201

📊 Results

Verifying mock method calls:

MethodMeanErrorStdDevAllocated
TUnit.Mocks1.674 μs0.0300 μs0.0281 μs4.11 KB
Moq255.272 μs1.0882 μs0.9646 μs23.74 KB
NSubstitute6.264 μs0.0382 μs0.0357 μs9.83 KB
FakeItEasy7.047 μs0.0297 μs0.0263 μs10.48 KB
'TUnit.Mocks (Never)'1.193 μs0.0182 μs0.0170 μs1.58 KB
'Moq (Never)'66.322 μs0.3183 μs0.2978 μs6.76 KB
'NSubstitute (Never)'3.397 μs0.0226 μs0.0211 μs6.92 KB
'FakeItEasy (Never)'3.475 μs0.0475 μs0.0445 μs5.1 KB
'TUnit.Mocks (Multiple)'2.462 μs0.0491 μs0.1077 μs6.26 KB
'Moq (Multiple)'350.992 μs2.0233 μs1.7936 μs33.86 KB
'NSubstitute (Multiple)'11.517 μs0.0277 μs0.0246 μs16.49 KB
'FakeItEasy (Multiple)'12.344 μs0.1133 μs0.1060 μs18.79 KB

📈 Visual Comparison

🎯 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-03-29T03:29:47.877Z