Skip to main content

Invocation 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

Calling methods on mock objects:

MethodMeanErrorStdDevAllocated
TUnit.Mocks466.6 ns124.67 ns6.83 ns224 B
Moq811.6 ns230.66 ns12.64 ns376 B
NSubstitute731.3 ns408.83 ns22.41 ns304 B
FakeItEasy1,756.0 ns418.56 ns22.94 ns944 B
'TUnit.Mocks (String)'324.4 ns88.45 ns4.85 ns160 B
'Moq (String)'543.8 ns404.28 ns22.16 ns296 B
'NSubstitute (String)'621.0 ns158.06 ns8.66 ns328 B
'FakeItEasy (String)'1,473.2 ns67.35 ns3.69 ns776 B
'TUnit.Mocks (100 calls)'44,280.6 ns14,518.44 ns795.80 ns23296 B
'Moq (100 calls)'75,180.1 ns27,129.31 ns1,487.05 ns37600 B
'NSubstitute (100 calls)'73,737.1 ns8,160.85 ns447.32 ns36448 B
'FakeItEasy (100 calls)'166,152.5 ns62,280.93 ns3,413.83 ns94400 B

📈 Visual Comparison

🎯 Key Insights

This benchmark compares TUnit.Mocks (source-generated) against runtime proxy-based mocking libraries for calling methods on mock objects.


Methodology

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

Last generated: 2026-03-29T03:29:47.876Z