Skip to content

Commit 2de21e6

Browse files
thomhurstgithub-actions[bot]
authored andcommitted
chore: update mock benchmark results
1 parent 3aea868 commit 2de21e6

15 files changed

Lines changed: 713 additions & 713 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-08-17** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-18** from the latest CI run.
1313

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 526.1 ns | 3.14 ns | 2.94 ns | 3.11 KB |
24-
| Imposter | 357.7 ns | 1.20 ns | 1.12 ns | 2.66 KB |
25-
| Mockolate | 266.7 ns | 1.48 ns | 1.31 ns | 1.8 KB |
26-
| Moq | 105,106.3 ns | 512.04 ns | 399.77 ns | 13.29 KB |
27-
| NSubstitute | 3,433.5 ns | 28.25 ns | 23.59 ns | 7.85 KB |
28-
| FakeItEasy | 3,735.9 ns | 29.36 ns | 27.46 ns | 7.44 KB |
23+
| **TUnit.Mocks** | 652.9 ns | 1.97 ns | 1.65 ns | 3.11 KB |
24+
| Imposter | 464.3 ns | 1.13 ns | 1.06 ns | 2.66 KB |
25+
| Mockolate | 347.2 ns | 2.05 ns | 1.91 ns | 1.8 KB |
26+
| Moq | 136,337.3 ns | 867.15 ns | 768.70 ns | 13.29 KB |
27+
| NSubstitute | 4,526.5 ns | 48.31 ns | 40.34 ns | 7.85 KB |
28+
| FakeItEasy | 4,579.6 ns | 34.68 ns | 32.44 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 --> 126128
55-
bar [526.1, 357.7, 266.7, 105106.3, 3433.5, 3735.9]
54+
y-axis "Time (ns)" 0 --> 163605
55+
bar [652.9, 464.3, 347.2, 136337.3, 4526.5, 4579.6]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 599.9 ns | 3.08 ns | 2.88 ns | 3.2 KB |
65-
| Imposter | 414.0 ns | 0.88 ns | 0.69 ns | 2.82 KB |
66-
| Mockolate | 304.8 ns | 0.71 ns | 0.63 ns | 1.84 KB |
67-
| Moq | 112,273.8 ns | 585.37 ns | 488.81 ns | 13.76 KB |
68-
| NSubstitute | 3,942.5 ns | 25.63 ns | 22.72 ns | 8.41 KB |
69-
| FakeItEasy | 4,349.1 ns | 16.12 ns | 13.46 ns | 9.26 KB |
64+
| **TUnit.Mocks** | 769.9 ns | 3.36 ns | 2.98 ns | 3.2 KB |
65+
| Imposter | 539.0 ns | 0.89 ns | 0.84 ns | 2.82 KB |
66+
| Mockolate | 408.0 ns | 1.23 ns | 1.15 ns | 1.84 KB |
67+
| Moq | 144,564.3 ns | 1,112.84 ns | 929.27 ns | 13.73 KB |
68+
| NSubstitute | 5,011.5 ns | 21.85 ns | 18.24 ns | 8.41 KB |
69+
| FakeItEasy | 5,548.6 ns | 31.25 ns | 26.09 ns | 9.26 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 --> 134729
96-
bar [599.9, 414, 304.8, 112273.8, 3942.5, 4349.1]
95+
y-axis "Time (ns)" 0 --> 173478
96+
bar [769.9, 539, 408, 144564.3, 5011.5, 5548.6]
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-08-17T02:43:20.076Z*
109+
*Last generated: 2026-08-18T02:39:29.373Z*

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-08-17** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-18** from the latest CI run.
1313

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 2.011 μs | 0.0209 μs | 0.0174 μs | 6.23 KB |
24-
| Imposter | 2.608 μs | 0.0378 μs | 0.0335 μs | 15.71 KB |
25-
| Mockolate | 1.660 μs | 0.0329 μs | 0.0451 μs | 7.36 KB |
26-
| Moq | 305.261 μs | 1.0978 μs | 0.9167 μs | 36.35 KB |
27-
| NSubstitute | 17.793 μs | 0.1791 μs | 0.1675 μs | 26.72 KB |
28-
| FakeItEasy | 15.855 μs | 0.1515 μs | 0.1417 μs | 25.52 KB |
23+
| **TUnit.Mocks** | 1.892 μs | 0.0295 μs | 0.0276 μs | 6.23 KB |
24+
| Imposter | 2.576 μs | 0.0490 μs | 0.0545 μs | 15.71 KB |
25+
| Mockolate | 1.667 μs | 0.0327 μs | 0.0306 μs | 7.36 KB |
26+
| Moq | 309.579 μs | 2.1408 μs | 1.8978 μs | 36.3 KB |
27+
| NSubstitute | 18.523 μs | 0.3638 μs | 0.3573 μs | 26.72 KB |
28+
| FakeItEasy | 16.596 μs | 0.2873 μs | 0.2687 μs | 25.68 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 --> 367
55-
bar [2.011, 2.608, 1.66, 305.261, 17.793, 15.855]
54+
y-axis "Time (μs)" 0 --> 372
55+
bar [1.892, 2.576, 1.667, 309.579, 18.523, 16.596]
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-08-17T02:43:20.076Z*
68+
*Last generated: 2026-08-18T02:39:29.373Z*

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-08-17** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-18** from the latest CI run.
1313

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 268.09 ns | 87.126 ns | 4.776 ns | 128 B |
24-
| Imposter | 284.71 ns | 62.901 ns | 3.448 ns | 168 B |
25-
| Mockolate | 97.26 ns | 23.489 ns | 1.288 ns | 84 B |
26-
| Moq | 760.37 ns | 157.444 ns | 8.630 ns | 376 B |
27-
| NSubstitute | 728.19 ns | 81.304 ns | 4.457 ns | 360 B |
28-
| FakeItEasy | 1,609.26 ns | 223.705 ns | 12.262 ns | 944 B |
23+
| **TUnit.Mocks** | 179.60 ns | 61.019 ns | 3.345 ns | 128 B |
24+
| Imposter | 165.10 ns | 7.917 ns | 0.434 ns | 168 B |
25+
| Mockolate | 69.37 ns | 50.267 ns | 2.755 ns | 84 B |
26+
| Moq | 430.67 ns | 343.778 ns | 18.844 ns | 376 B |
27+
| NSubstitute | 397.10 ns | 14.298 ns | 0.784 ns | 304 B |
28+
| FakeItEasy | 1,001.48 ns | 224.078 ns | 12.282 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 --> 1932
55-
bar [268.09, 284.71, 97.26, 760.37, 728.19, 1609.26]
54+
y-axis "Time (ns)" 0 --> 1202
55+
bar [179.6, 165.1, 69.37, 430.67, 397.1, 1001.48]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 166.31 ns | 47.236 ns | 2.589 ns | 96 B |
65-
| Imposter | 285.31 ns | 88.204 ns | 4.835 ns | 168 B |
66-
| Mockolate | 89.49 ns | 6.983 ns | 0.383 ns | 60 B |
67-
| Moq | 512.15 ns | 101.769 ns | 5.578 ns | 296 B |
68-
| NSubstitute | 606.78 ns | 183.051 ns | 10.034 ns | 272 B |
69-
| FakeItEasy | 1,466.27 ns | 54.892 ns | 3.009 ns | 776 B |
64+
| **TUnit.Mocks** | 120.72 ns | 55.547 ns | 3.045 ns | 96 B |
65+
| Imposter | 166.34 ns | 5.611 ns | 0.308 ns | 168 B |
66+
| Mockolate | 61.33 ns | 17.716 ns | 0.971 ns | 60 B |
67+
| Moq | 296.37 ns | 94.444 ns | 5.177 ns | 296 B |
68+
| NSubstitute | 333.00 ns | 37.814 ns | 2.073 ns | 272 B |
69+
| FakeItEasy | 930.56 ns | 187.617 ns | 10.284 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 --> 1760
96-
bar [166.31, 285.31, 89.49, 512.15, 606.78, 1466.27]
95+
y-axis "Time (ns)" 0 --> 1117
96+
bar [120.72, 166.34, 61.33, 296.37, 333, 930.56]
9797
```
9898

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

103103
| Library | Mean | Error | StdDev | Allocated |
104104
|---------|------|-------|--------|-----------|
105-
| **TUnit.Mocks** | 26,806.42 ns | 9,422.249 ns | 516.465 ns | 12736 B |
106-
| Imposter | 28,140.20 ns | 8,813.693 ns | 483.108 ns | 16800 B |
107-
| Mockolate | 9,731.23 ns | 2,164.372 ns | 118.637 ns | 8400 B |
108-
| Moq | 78,935.73 ns | 9,245.295 ns | 506.766 ns | 37600 B |
109-
| NSubstitute | 72,911.31 ns | 11,147.412 ns | 611.027 ns | 36448 B |
110-
| FakeItEasy | 162,973.07 ns | 59,893.083 ns | 3,282.942 ns | 94400 B |
105+
| **TUnit.Mocks** | 17,589.62 ns | 5,619.319 ns | 308.014 ns | 12736 B |
106+
| Imposter | 16,396.96 ns | 1,122.206 ns | 61.512 ns | 16800 B |
107+
| Mockolate | 6,853.72 ns | 2,197.338 ns | 120.444 ns | 8400 B |
108+
| Moq | 41,704.28 ns | 6,101.535 ns | 334.446 ns | 37600 B |
109+
| NSubstitute | 39,271.66 ns | 5,610.566 ns | 307.534 ns | 30848 B |
110+
| FakeItEasy | 103,071.39 ns | 51,755.101 ns | 2,836.872 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 --> 195568
137-
bar [26806.42, 28140.2, 9731.23, 78935.73, 72911.31, 162973.07]
136+
y-axis "Time (ns)" 0 --> 123686
137+
bar [17589.62, 16396.96, 6853.72, 41704.28, 39271.66, 103071.39]
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-08-17T02:43:20.076Z*
150+
*Last generated: 2026-08-18T02:39:29.373Z*

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-08-17** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-18** from the latest CI run.
1313

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 28.31 ns | 0.192 ns | 0.180 ns | 200 B |
24-
| Imposter | 90.29 ns | 0.631 ns | 0.590 ns | 440 B |
25-
| Mockolate | 16.79 ns | 0.177 ns | 0.165 ns | 160 B |
26-
| Moq | 1,295.11 ns | 21.767 ns | 20.361 ns | 2048 B |
27-
| NSubstitute | 1,752.71 ns | 5.351 ns | 4.743 ns | 5000 B |
28-
| FakeItEasy | 1,617.63 ns | 8.652 ns | 7.225 ns | 2715 B |
23+
| **TUnit.Mocks** | 30.17 ns | 0.157 ns | 0.139 ns | 200 B |
24+
| Imposter | 114.32 ns | 0.677 ns | 0.633 ns | 440 B |
25+
| Mockolate | 17.87 ns | 0.102 ns | 0.091 ns | 160 B |
26+
| Moq | 1,258.98 ns | 23.463 ns | 21.947 ns | 2048 B |
27+
| NSubstitute | 1,722.10 ns | 6.319 ns | 5.602 ns | 5000 B |
28+
| FakeItEasy | 1,631.47 ns | 4.825 ns | 4.029 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 --> 2104
55-
bar [28.31, 90.29, 16.79, 1295.11, 1752.71, 1617.63]
54+
y-axis "Time (ns)" 0 --> 2067
55+
bar [30.17, 114.32, 17.87, 1258.98, 1722.1, 1631.47]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 28.36 ns | 0.310 ns | 0.274 ns | 200 B |
65-
| Imposter | 167.33 ns | 3.366 ns | 3.306 ns | 696 B |
66-
| Mockolate | 19.59 ns | 0.458 ns | 1.350 ns | 176 B |
67-
| Moq | 1,370.53 ns | 15.378 ns | 14.384 ns | 1912 B |
68-
| NSubstitute | 2,075.34 ns | 31.017 ns | 29.014 ns | 5000 B |
69-
| FakeItEasy | 2,006.40 ns | 8.710 ns | 7.274 ns | 2715 B |
64+
| **TUnit.Mocks** | 29.47 ns | 0.098 ns | 0.087 ns | 200 B |
65+
| Imposter | 157.65 ns | 0.346 ns | 0.289 ns | 696 B |
66+
| Mockolate | 18.12 ns | 0.122 ns | 0.114 ns | 176 B |
67+
| Moq | 1,229.90 ns | 8.635 ns | 7.655 ns | 1912 B |
68+
| NSubstitute | 1,735.69 ns | 7.560 ns | 7.071 ns | 5000 B |
69+
| FakeItEasy | 1,607.00 ns | 5.785 ns | 5.128 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 --> 2491
96-
bar [28.36, 167.33, 19.59, 1370.53, 2075.34, 2006.4]
95+
y-axis "Time (ns)" 0 --> 2083
96+
bar [29.47, 157.65, 18.12, 1229.9, 1735.69, 1607]
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-08-17T02:43:20.076Z*
109+
*Last generated: 2026-08-18T02:39:29.373Z*

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-08-17** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-18** from the latest CI run.
1313

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 498.5 ns | 9.97 ns | 13.98 ns | 2.34 KB |
24-
| Imposter | 616.3 ns | 7.74 ns | 7.24 ns | 6.12 KB |
25-
| Mockolate | 297.3 ns | 5.95 ns | 5.27 ns | 1.41 KB |
26-
| Moq | 178,037.1 ns | 899.08 ns | 841.00 ns | 28.64 KB |
27-
| NSubstitute | 5,487.3 ns | 74.62 ns | 62.31 ns | 9.01 KB |
28-
| FakeItEasy | 5,275.9 ns | 76.59 ns | 71.64 ns | 10.45 KB |
23+
| **TUnit.Mocks** | 509.9 ns | 3.69 ns | 3.27 ns | 2.34 KB |
24+
| Imposter | 815.1 ns | 5.95 ns | 5.28 ns | 6.12 KB |
25+
| Mockolate | 309.1 ns | 2.32 ns | 2.06 ns | 1.41 KB |
26+
| Moq | 430,684.0 ns | 1,820.70 ns | 1,614.01 ns | 28.52 KB |
27+
| NSubstitute | 6,253.1 ns | 84.31 ns | 74.74 ns | 9.01 KB |
28+
| FakeItEasy | 7,739.4 ns | 40.83 ns | 36.20 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 --> 213645
55-
bar [498.5, 616.3, 297.3, 178037.1, 5487.3, 5275.9]
54+
y-axis "Time (ns)" 0 --> 516821
55+
bar [509.9, 815.1, 309.1, 430684, 6253.1, 7739.4]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 722.1 ns | 9.36 ns | 8.76 ns | 3.15 KB |
65-
| Imposter | 1,174.1 ns | 12.83 ns | 11.38 ns | 10.59 KB |
66-
| Mockolate | 496.6 ns | 6.33 ns | 5.28 ns | 2.35 KB |
67-
| Moq | 48,501.5 ns | 307.22 ns | 272.34 ns | 16.52 KB |
68-
| NSubstitute | 8,482.3 ns | 116.50 ns | 108.98 ns | 20.31 KB |
69-
| FakeItEasy | 4,910.6 ns | 97.20 ns | 111.93 ns | 11.7 KB |
64+
| **TUnit.Mocks** | 760.8 ns | 9.40 ns | 8.79 ns | 3.15 KB |
65+
| Imposter | 1,431.4 ns | 6.84 ns | 6.07 ns | 10.59 KB |
66+
| Mockolate | 539.6 ns | 4.39 ns | 4.11 ns | 2.35 KB |
67+
| Moq | 113,653.2 ns | 545.89 ns | 510.63 ns | 16.53 KB |
68+
| NSubstitute | 12,227.8 ns | 93.23 ns | 77.85 ns | 20.31 KB |
69+
| FakeItEasy | 7,949.7 ns | 112.99 ns | 100.16 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 --> 58202
96-
bar [722.1, 1174.1, 496.6, 48501.5, 8482.3, 4910.6]
95+
y-axis "Time (ns)" 0 --> 136384
96+
bar [760.8, 1431.4, 539.6, 113653.2, 12227.8, 7949.7]
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-08-17T02:43:20.076Z*
109+
*Last generated: 2026-08-18T02:39:29.373Z*

0 commit comments

Comments
 (0)