Skip to main content

Setup 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

Mock behavior configuration (returns, matchers):

MethodMeanErrorStdDevAllocated
TUnit.Mocks1.920 μs0.0196 μs0.0174 μs3.36 KB
Moq430.805 μs3.1114 μs2.9104 μs28.52 KB
NSubstitute5.547 μs0.0392 μs0.0367 μs9.06 KB
FakeItEasy8.111 μs0.0610 μs0.0540 μs10.45 KB
'TUnit.Mocks (Multiple)'2.213 μs0.0345 μs0.0306 μs4.43 KB
'Moq (Multiple)'116.728 μs0.6735 μs0.6300 μs16.53 KB
'NSubstitute (Multiple)'12.361 μs0.0943 μs0.0836 μs20.5 KB
'FakeItEasy (Multiple)'7.867 μs0.0858 μs0.0760 μs11.71 KB

📈 Visual Comparison

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