Skip to main content

Callback 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

Callback registration and execution:

MethodMeanErrorStdDevAllocated
TUnit.Mocks1.991 μs0.0274 μs0.0256 μs3.94 KB
Moq188.239 μs1.4776 μs1.3821 μs13.14 KB
NSubstitute4.688 μs0.0363 μs0.0322 μs7.93 KB
FakeItEasy5.490 μs0.0253 μs0.0237 μs7.44 KB
'TUnit.Mocks (with args)'2.449 μs0.0339 μs0.0317 μs4.04 KB
'Moq (with args)'189.687 μs1.6805 μs1.5719 μs13.73 KB
'NSubstitute (with args)'5.275 μs0.0296 μs0.0247 μs8.53 KB
'FakeItEasy (with args)'6.544 μs0.0647 μs0.0573 μs9.4 KB

📈 Visual Comparison

🎯 Key Insights

This benchmark compares TUnit.Mocks (source-generated) against runtime proxy-based mocking libraries for callback registration and execution.


Methodology

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

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