Skip to content

Commit 3c3ff4c

Browse files
authored
chore: update mock benchmark results (#6160)
1 parent 5d85a7e commit 3c3ff4c

15 files changed

Lines changed: 769 additions & 733 deletions

docs/docs/benchmarks/mocks/Callback.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 2
99
> Callback registration and execution — comparing **TUnit.Mocks** (source-generated) against runtime proxy-based mocking libraries.
1010
1111
:::info Last Updated
12-
This benchmark was automatically generated on **2026-06-04** from the latest CI run.
12+
This benchmark was automatically generated on **2026-06-05** from the latest CI run.
1313

1414
**Environment:** Ubuntu Latest • .NET SDK 10.0.300
1515
:::
@@ -20,12 +20,12 @@ Callback registration and execution:
2020

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 637.4 ns | 3.21 ns | 2.85 ns | 3.1 KB |
24-
| Imposter | 464.2 ns | 1.64 ns | 1.37 ns | 2.66 KB |
25-
| Mockolate | 344.6 ns | 1.59 ns | 1.41 ns | 1.91 KB |
26-
| Moq | 132,087.7 ns | 1,222.29 ns | 1,083.53 ns | 13.14 KB |
27-
| NSubstitute | 4,056.6 ns | 21.20 ns | 18.79 ns | 7.93 KB |
28-
| FakeItEasy | 4,442.5 ns | 43.18 ns | 38.27 ns | 7.44 KB |
23+
| **TUnit.Mocks** | 652.9 ns | 2.69 ns | 2.39 ns | 3.1 KB |
24+
| Imposter | 464.2 ns | 1.98 ns | 1.85 ns | 2.66 KB |
25+
| Mockolate | 360.8 ns | 2.27 ns | 2.13 ns | 1.91 KB |
26+
| Moq | 137,030.6 ns | 1,292.00 ns | 1,145.32 ns | 13.29 KB |
27+
| NSubstitute | 4,092.6 ns | 20.38 ns | 19.07 ns | 7.93 KB |
28+
| FakeItEasy | 4,580.3 ns | 17.97 ns | 16.81 ns | 7.44 KB |
2929

3030
```mermaid
3131
%%{init: {
@@ -51,8 +51,8 @@ Callback registration and execution:
5151
xychart-beta
5252
title "Callback Performance Comparison"
5353
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
54-
y-axis "Time (ns)" 0 --> 158506
55-
bar [637.4, 464.2, 344.6, 132087.7, 4056.6, 4442.5]
54+
y-axis "Time (ns)" 0 --> 164437
55+
bar [652.9, 464.2, 360.8, 137030.6, 4092.6, 4580.3]
5656
```
5757

5858
---
@@ -61,12 +61,12 @@ xychart-beta
6161

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 766.2 ns | 2.25 ns | 1.99 ns | 3.2 KB |
65-
| Imposter | 546.9 ns | 6.10 ns | 5.41 ns | 2.82 KB |
66-
| Mockolate | 392.5 ns | 3.32 ns | 3.11 ns | 1.95 KB |
67-
| Moq | 144,708.3 ns | 2,501.13 ns | 2,676.18 ns | 13.73 KB |
68-
| NSubstitute | 4,731.2 ns | 29.12 ns | 24.32 ns | 8.53 KB |
69-
| FakeItEasy | 5,535.4 ns | 24.92 ns | 22.09 ns | 9.26 KB |
64+
| **TUnit.Mocks** | 755.6 ns | 3.10 ns | 2.42 ns | 3.2 KB |
65+
| Imposter | 537.5 ns | 1.65 ns | 1.55 ns | 2.82 KB |
66+
| Mockolate | 387.1 ns | 1.31 ns | 1.09 ns | 1.95 KB |
67+
| Moq | 141,061.8 ns | 813.55 ns | 679.36 ns | 13.73 KB |
68+
| NSubstitute | 4,635.3 ns | 24.59 ns | 20.53 ns | 8.53 KB |
69+
| FakeItEasy | 5,644.4 ns | 18.61 ns | 16.50 ns | 9.4 KB |
7070

7171
```mermaid
7272
%%{init: {
@@ -92,8 +92,8 @@ xychart-beta
9292
xychart-beta
9393
title "Callback (with args) Performance Comparison"
9494
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
95-
y-axis "Time (ns)" 0 --> 173650
96-
bar [766.2, 546.9, 392.5, 144708.3, 4731.2, 5535.4]
95+
y-axis "Time (ns)" 0 --> 169275
96+
bar [755.6, 537.5, 387.1, 141061.8, 4635.3, 5644.4]
9797
```
9898

9999
## 🎯 Key Insights
@@ -106,4 +106,4 @@ This benchmark compares **TUnit.Mocks** (source-generated) against runtime proxy
106106
View the [mock benchmarks overview](/docs/benchmarks/mocks) for methodology details and environment information.
107107
:::
108108

109-
*Last generated: 2026-06-04T03:31:56.363Z*
109+
*Last generated: 2026-06-05T03:30:04.148Z*

docs/docs/benchmarks/mocks/CombinedWorkflow.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 3
99
> Full workflow: create → setup → invoke → verify — comparing **TUnit.Mocks** (source-generated) against runtime proxy-based mocking libraries.
1010
1111
:::info Last Updated
12-
This benchmark was automatically generated on **2026-06-04** from the latest CI run.
12+
This benchmark was automatically generated on **2026-06-05** from the latest CI run.
1313

1414
**Environment:** Ubuntu Latest • .NET SDK 10.0.300
1515
:::
@@ -20,12 +20,12 @@ Full workflow: create → setup → invoke → verify:
2020

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 1.881 μs | 0.0373 μs | 0.0444 μs | 6.21 KB |
24-
| Imposter | 2.703 μs | 0.0540 μs | 0.1230 μs | 15.71 KB |
25-
| Mockolate | 1.835 μs | 0.0366 μs | 0.0730 μs | 7.63 KB |
26-
| Moq | 312.298 μs | 2.8498 μs | 2.5263 μs | 36.16 KB |
27-
| NSubstitute | 16.910 μs | 0.1490 μs | 0.1321 μs | 26.72 KB |
28-
| FakeItEasy | 16.568 μs | 0.2654 μs | 0.2483 μs | 25.52 KB |
23+
| **TUnit.Mocks** | 1.784 μs | 0.0288 μs | 0.0270 μs | 6.21 KB |
24+
| Imposter | 2.591 μs | 0.0357 μs | 0.0334 μs | 15.71 KB |
25+
| Mockolate | 1.716 μs | 0.0275 μs | 0.0257 μs | 7.63 KB |
26+
| Moq | 406.287 μs | 1.5837 μs | 1.4039 μs | 36.59 KB |
27+
| NSubstitute | 17.037 μs | 0.0787 μs | 0.0736 μs | 26.72 KB |
28+
| FakeItEasy | 18.082 μs | 0.2038 μs | 0.1907 μs | 25.52 KB |
2929

3030
```mermaid
3131
%%{init: {
@@ -51,8 +51,8 @@ Full workflow: create → setup → invoke → verify:
5151
xychart-beta
5252
title "CombinedWorkflow Performance Comparison"
5353
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
54-
y-axis "Time (μs)" 0 --> 375
55-
bar [1.881, 2.703, 1.835, 312.298, 16.91, 16.568]
54+
y-axis "Time (μs)" 0 --> 488
55+
bar [1.784, 2.591, 1.716, 406.287, 17.037, 18.082]
5656
```
5757

5858
## 🎯 Key Insights
@@ -65,4 +65,4 @@ This benchmark compares **TUnit.Mocks** (source-generated) against runtime proxy
6565
View the [mock benchmarks overview](/docs/benchmarks/mocks) for methodology details and environment information.
6666
:::
6767

68-
*Last generated: 2026-06-04T03:31:56.363Z*
68+
*Last generated: 2026-06-05T03:30:04.148Z*

docs/docs/benchmarks/mocks/Invocation.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 4
99
> Calling methods on mock objects — comparing **TUnit.Mocks** (source-generated) against runtime proxy-based mocking libraries.
1010
1111
:::info Last Updated
12-
This benchmark was automatically generated on **2026-06-04** from the latest CI run.
12+
This benchmark was automatically generated on **2026-06-05** from the latest CI run.
1313

1414
**Environment:** Ubuntu Latest • .NET SDK 10.0.300
1515
:::
@@ -20,12 +20,12 @@ Calling methods on mock objects:
2020

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 277.91 ns | 168.22 ns | 9.221 ns | 128 B |
24-
| Imposter | 305.66 ns | 215.84 ns | 11.831 ns | 168 B |
25-
| Mockolate | 106.57 ns | 20.53 ns | 1.125 ns | 84 B |
26-
| Moq | 836.41 ns | 418.43 ns | 22.935 ns | 376 B |
27-
| NSubstitute | 743.31 ns | 675.53 ns | 37.028 ns | 304 B |
28-
| FakeItEasy | 1,766.19 ns | 97.51 ns | 5.345 ns | 944 B |
23+
| **TUnit.Mocks** | 215.31 ns | 56.957 ns | 3.122 ns | 128 B |
24+
| Imposter | 232.80 ns | 4.920 ns | 0.270 ns | 168 B |
25+
| Mockolate | 88.80 ns | 33.625 ns | 1.843 ns | 84 B |
26+
| Moq | 641.20 ns | 425.362 ns | 23.316 ns | 376 B |
27+
| NSubstitute | 607.70 ns | 516.136 ns | 28.291 ns | 304 B |
28+
| FakeItEasy | 1,605.23 ns | 656.898 ns | 36.007 ns | 944 B |
2929

3030
```mermaid
3131
%%{init: {
@@ -51,8 +51,8 @@ Calling methods on mock objects:
5151
xychart-beta
5252
title "Invocation Performance Comparison"
5353
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
54-
y-axis "Time (ns)" 0 --> 2120
55-
bar [277.91, 305.66, 106.57, 836.41, 743.31, 1766.19]
54+
y-axis "Time (ns)" 0 --> 1927
55+
bar [215.31, 232.8, 88.8, 641.2, 607.7, 1605.23]
5656
```
5757

5858
---
@@ -61,12 +61,12 @@ xychart-beta
6161

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 173.91 ns | 68.45 ns | 3.752 ns | 96 B |
65-
| Imposter | 298.33 ns | 101.31 ns | 5.553 ns | 168 B |
66-
| Mockolate | 98.90 ns | 56.78 ns | 3.112 ns | 60 B |
67-
| Moq | 525.99 ns | 63.37 ns | 3.474 ns | 296 B |
68-
| NSubstitute | 610.15 ns | 231.29 ns | 12.678 ns | 272 B |
69-
| FakeItEasy | 1,637.09 ns | 505.21 ns | 27.692 ns | 776 B |
64+
| **TUnit.Mocks** | 134.65 ns | 76.457 ns | 4.191 ns | 96 B |
65+
| Imposter | 241.29 ns | 186.342 ns | 10.214 ns | 168 B |
66+
| Mockolate | 83.27 ns | 40.791 ns | 2.236 ns | 60 B |
67+
| Moq | 425.75 ns | 230.811 ns | 12.652 ns | 296 B |
68+
| NSubstitute | 474.66 ns | 19.305 ns | 1.058 ns | 272 B |
69+
| FakeItEasy | 1,321.39 ns | 957.700 ns | 52.495 ns | 776 B |
7070

7171
```mermaid
7272
%%{init: {
@@ -92,8 +92,8 @@ xychart-beta
9292
xychart-beta
9393
title "Invocation (String) Performance Comparison"
9494
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
95-
y-axis "Time (ns)" 0 --> 1965
96-
bar [173.91, 298.33, 98.9, 525.99, 610.15, 1637.09]
95+
y-axis "Time (ns)" 0 --> 1586
96+
bar [134.65, 241.29, 83.27, 425.75, 474.66, 1321.39]
9797
```
9898

9999
---
@@ -102,12 +102,12 @@ xychart-beta
102102

103103
| Library | Mean | Error | StdDev | Allocated |
104104
|---------|------|-------|--------|-----------|
105-
| **TUnit.Mocks** | 27,230.90 ns | 10,653.15 ns | 583.935 ns | 12736 B |
106-
| Imposter | 30,655.85 ns | 37,018.92 ns | 2,029.132 ns | 16800 B |
107-
| Mockolate | 11,547.82 ns | 14,291.35 ns | 783.357 ns | 8400 B |
108-
| Moq | 78,291.98 ns | 12,310.35 ns | 674.772 ns | 37600 B |
109-
| NSubstitute | 78,791.90 ns | 12,109.72 ns | 663.774 ns | 36448 B |
110-
| FakeItEasy | 174,269.11 ns | 40,974.48 ns | 2,245.949 ns | 94400 B |
105+
| **TUnit.Mocks** | 21,480.79 ns | 9,465.427 ns | 518.832 ns | 12736 B |
106+
| Imposter | 23,277.23 ns | 4,438.146 ns | 243.270 ns | 16800 B |
107+
| Mockolate | 9,136.16 ns | 2,795.490 ns | 153.230 ns | 8400 B |
108+
| Moq | 62,248.77 ns | 5,991.129 ns | 328.394 ns | 37600 B |
109+
| NSubstitute | 63,845.01 ns | 16,346.905 ns | 896.029 ns | 30848 B |
110+
| FakeItEasy | 145,137.77 ns | 63,263.258 ns | 3,467.673 ns | 94400 B |
111111

112112
```mermaid
113113
%%{init: {
@@ -133,8 +133,8 @@ xychart-beta
133133
xychart-beta
134134
title "Invocation (100 calls) Performance Comparison"
135135
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
136-
y-axis "Time (ns)" 0 --> 209123
137-
bar [27230.9, 30655.85, 11547.82, 78291.98, 78791.9, 174269.11]
136+
y-axis "Time (ns)" 0 --> 174166
137+
bar [21480.79, 23277.23, 9136.16, 62248.77, 63845.01, 145137.77]
138138
```
139139

140140
## 🎯 Key Insights
@@ -147,4 +147,4 @@ This benchmark compares **TUnit.Mocks** (source-generated) against runtime proxy
147147
View the [mock benchmarks overview](/docs/benchmarks/mocks) for methodology details and environment information.
148148
:::
149149

150-
*Last generated: 2026-06-04T03:31:56.363Z*
150+
*Last generated: 2026-06-05T03:30:04.148Z*

docs/docs/benchmarks/mocks/MockCreation.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 5
99
> Mock instance creation performance — comparing **TUnit.Mocks** (source-generated) against runtime proxy-based mocking libraries.
1010
1111
:::info Last Updated
12-
This benchmark was automatically generated on **2026-06-04** from the latest CI run.
12+
This benchmark was automatically generated on **2026-06-05** from the latest CI run.
1313

1414
**Environment:** Ubuntu Latest • .NET SDK 10.0.300
1515
:::
@@ -20,12 +20,12 @@ Mock instance creation performance:
2020

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 28.13 ns | 0.642 ns | 0.630 ns | 192 B |
24-
| Imposter | 100.99 ns | 2.067 ns | 2.614 ns | 440 B |
25-
| Mockolate | 68.89 ns | 1.370 ns | 1.346 ns | 424 B |
26-
| Moq | 1,222.79 ns | 15.346 ns | 14.355 ns | 2048 B |
27-
| NSubstitute | 1,695.00 ns | 18.041 ns | 16.875 ns | 5000 B |
28-
| FakeItEasy | 1,621.73 ns | 30.011 ns | 28.073 ns | 2723 B |
23+
| **TUnit.Mocks** | 23.81 ns | 0.073 ns | 0.061 ns | 192 B |
24+
| Imposter | 86.55 ns | 0.249 ns | 0.208 ns | 440 B |
25+
| Mockolate | 57.20 ns | 0.144 ns | 0.128 ns | 424 B |
26+
| Moq | 1,342.12 ns | 11.720 ns | 10.963 ns | 2048 B |
27+
| NSubstitute | 1,839.31 ns | 5.790 ns | 4.835 ns | 5000 B |
28+
| FakeItEasy | 1,608.07 ns | 7.112 ns | 6.305 ns | 2715 B |
2929

3030
```mermaid
3131
%%{init: {
@@ -51,8 +51,8 @@ Mock instance creation performance:
5151
xychart-beta
5252
title "MockCreation Performance Comparison"
5353
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
54-
y-axis "Time (ns)" 0 --> 2034
55-
bar [28.13, 100.99, 68.89, 1222.79, 1695, 1621.73]
54+
y-axis "Time (ns)" 0 --> 2208
55+
bar [23.81, 86.55, 57.2, 1342.12, 1839.31, 1608.07]
5656
```
5757

5858
---
@@ -61,12 +61,12 @@ xychart-beta
6161

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 27.61 ns | 0.628 ns | 0.794 ns | 192 B |
65-
| Imposter | 148.97 ns | 1.395 ns | 1.089 ns | 696 B |
66-
| Mockolate | 66.82 ns | 1.412 ns | 1.980 ns | 456 B |
67-
| Moq | 1,212.39 ns | 4.425 ns | 4.139 ns | 1912 B |
68-
| NSubstitute | 1,814.22 ns | 13.841 ns | 12.270 ns | 5000 B |
69-
| FakeItEasy | 1,620.91 ns | 17.719 ns | 15.707 ns | 2723 B |
64+
| **TUnit.Mocks** | 24.11 ns | 0.150 ns | 0.133 ns | 192 B |
65+
| Imposter | 132.07 ns | 0.468 ns | 0.415 ns | 696 B |
66+
| Mockolate | 57.90 ns | 0.252 ns | 0.236 ns | 456 B |
67+
| Moq | 1,281.67 ns | 4.725 ns | 4.420 ns | 1912 B |
68+
| NSubstitute | 1,851.73 ns | 7.011 ns | 6.215 ns | 5000 B |
69+
| FakeItEasy | 1,581.96 ns | 10.235 ns | 9.073 ns | 2715 B |
7070

7171
```mermaid
7272
%%{init: {
@@ -92,8 +92,8 @@ xychart-beta
9292
xychart-beta
9393
title "MockCreation (Repository) Performance Comparison"
9494
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
95-
y-axis "Time (ns)" 0 --> 2178
96-
bar [27.61, 148.97, 66.82, 1212.39, 1814.22, 1620.91]
95+
y-axis "Time (ns)" 0 --> 2223
96+
bar [24.11, 132.07, 57.9, 1281.67, 1851.73, 1581.96]
9797
```
9898

9999
## 🎯 Key Insights
@@ -106,4 +106,4 @@ This benchmark compares **TUnit.Mocks** (source-generated) against runtime proxy
106106
View the [mock benchmarks overview](/docs/benchmarks/mocks) for methodology details and environment information.
107107
:::
108108

109-
*Last generated: 2026-06-04T03:31:56.363Z*
109+
*Last generated: 2026-06-05T03:30:04.148Z*

docs/docs/benchmarks/mocks/Setup.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 6
99
> Mock behavior configuration (returns, matchers) — comparing **TUnit.Mocks** (source-generated) against runtime proxy-based mocking libraries.
1010
1111
:::info Last Updated
12-
This benchmark was automatically generated on **2026-06-04** from the latest CI run.
12+
This benchmark was automatically generated on **2026-06-05** from the latest CI run.
1313

1414
**Environment:** Ubuntu Latest • .NET SDK 10.0.300
1515
:::
@@ -20,12 +20,12 @@ Mock behavior configuration (returns, matchers):
2020

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 682.6 ns | 19.84 ns | 58.18 ns | 2.34 KB |
24-
| Imposter | 1,263.5 ns | 52.17 ns | 153.84 ns | 6.12 KB |
25-
| Mockolate | 478.1 ns | 14.46 ns | 41.95 ns | 1.65 KB |
26-
| Moq | 327,428.3 ns | 3,202.53 ns | 2,995.65 ns | 28.56 KB |
27-
| NSubstitute | 5,781.8 ns | 110.88 ns | 127.70 ns | 9.01 KB |
28-
| FakeItEasy | 8,248.0 ns | 158.06 ns | 155.23 ns | 10.46 KB |
23+
| **TUnit.Mocks** | 504.1 ns | 4.74 ns | 4.43 ns | 2.34 KB |
24+
| Imposter | 800.3 ns | 12.24 ns | 11.45 ns | 6.12 KB |
25+
| Mockolate | 326.5 ns | 3.82 ns | 3.38 ns | 1.65 KB |
26+
| Moq | 425,741.9 ns | 2,646.85 ns | 2,475.87 ns | 28.52 KB |
27+
| NSubstitute | 5,393.4 ns | 36.08 ns | 31.98 ns | 9.01 KB |
28+
| FakeItEasy | 7,909.6 ns | 26.07 ns | 23.11 ns | 10.45 KB |
2929

3030
```mermaid
3131
%%{init: {
@@ -51,8 +51,8 @@ Mock behavior configuration (returns, matchers):
5151
xychart-beta
5252
title "Setup Performance Comparison"
5353
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
54-
y-axis "Time (ns)" 0 --> 392914
55-
bar [682.6, 1263.5, 478.1, 327428.3, 5781.8, 8248]
54+
y-axis "Time (ns)" 0 --> 510891
55+
bar [504.1, 800.3, 326.5, 425741.9, 5393.4, 7909.6]
5656
```
5757

5858
---
@@ -61,12 +61,12 @@ xychart-beta
6161

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 1,109.8 ns | 22.26 ns | 50.25 ns | 3.14 KB |
65-
| Imposter | 2,225.0 ns | 106.76 ns | 314.78 ns | 10.59 KB |
66-
| Mockolate | 747.3 ns | 24.35 ns | 71.41 ns | 2.6 KB |
67-
| Moq | 89,402.7 ns | 1,255.39 ns | 1,174.29 ns | 16.53 KB |
68-
| NSubstitute | 12,407.3 ns | 175.07 ns | 155.19 ns | 20.31 KB |
69-
| FakeItEasy | 7,620.5 ns | 101.01 ns | 89.54 ns | 11.72 KB |
64+
| **TUnit.Mocks** | 726.3 ns | 6.89 ns | 6.44 ns | 3.14 KB |
65+
| Imposter | 1,351.4 ns | 17.93 ns | 15.89 ns | 10.59 KB |
66+
| Mockolate | 552.8 ns | 5.03 ns | 4.70 ns | 2.6 KB |
67+
| Moq | 114,074.6 ns | 616.03 ns | 546.09 ns | 16.53 KB |
68+
| NSubstitute | 11,859.4 ns | 87.29 ns | 77.38 ns | 20.31 KB |
69+
| FakeItEasy | 7,540.5 ns | 85.24 ns | 75.56 ns | 11.71 KB |
7070

7171
```mermaid
7272
%%{init: {
@@ -92,8 +92,8 @@ xychart-beta
9292
xychart-beta
9393
title "Setup (Multiple) Performance Comparison"
9494
x-axis ["TUnit.Mocks", "Imposter", "Mockolate", "Moq", "NSubstitute", "FakeItEasy"]
95-
y-axis "Time (ns)" 0 --> 107284
96-
bar [1109.8, 2225, 747.3, 89402.7, 12407.3, 7620.5]
95+
y-axis "Time (ns)" 0 --> 136890
96+
bar [726.3, 1351.4, 552.8, 114074.6, 11859.4, 7540.5]
9797
```
9898

9999
## 🎯 Key Insights
@@ -106,4 +106,4 @@ This benchmark compares **TUnit.Mocks** (source-generated) against runtime proxy
106106
View the [mock benchmarks overview](/docs/benchmarks/mocks) for methodology details and environment information.
107107
:::
108108

109-
*Last generated: 2026-06-04T03:31:56.363Z*
109+
*Last generated: 2026-06-05T03:30:04.148Z*

0 commit comments

Comments
 (0)