Skip to content

Commit 8ceea57

Browse files
authored
chore: update mock benchmark results (#6656)
1 parent 725fc3e commit 8ceea57

15 files changed

Lines changed: 745 additions & 745 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-21** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-22** 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** | 687.7 ns | 5.27 ns | 4.93 ns | 3.11 KB |
24-
| Imposter | 478.4 ns | 4.26 ns | 3.78 ns | 2.66 KB |
25-
| Mockolate | 353.3 ns | 1.58 ns | 1.48 ns | 1.8 KB |
26-
| Moq | 136,486.8 ns | 1,369.80 ns | 1,214.29 ns | 13.14 KB |
27-
| NSubstitute | 4,610.7 ns | 90.61 ns | 70.75 ns | 7.85 KB |
28-
| FakeItEasy | 4,958.1 ns | 75.45 ns | 70.57 ns | 7.44 KB |
23+
| **TUnit.Mocks** | 687.1 ns | 4.60 ns | 4.07 ns | 3.11 KB |
24+
| Imposter | 463.4 ns | 4.46 ns | 4.17 ns | 2.66 KB |
25+
| Mockolate | 341.4 ns | 4.67 ns | 4.14 ns | 1.8 KB |
26+
| Moq | 185,849.2 ns | 793.02 ns | 741.79 ns | 13.14 KB |
27+
| NSubstitute | 4,879.0 ns | 58.79 ns | 52.12 ns | 7.85 KB |
28+
| FakeItEasy | 5,150.7 ns | 31.90 ns | 28.28 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 --> 163785
55-
bar [687.7, 478.4, 353.3, 136486.8, 4610.7, 4958.1]
54+
y-axis "Time (ns)" 0 --> 223020
55+
bar [687.1, 463.4, 341.4, 185849.2, 4879, 5150.7]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 807.2 ns | 6.44 ns | 6.03 ns | 3.2 KB |
65-
| Imposter | 549.0 ns | 3.54 ns | 3.31 ns | 2.82 KB |
66-
| Mockolate | 415.7 ns | 1.64 ns | 1.37 ns | 1.84 KB |
67-
| Moq | 146,038.6 ns | 982.21 ns | 918.76 ns | 13.73 KB |
68-
| NSubstitute | 5,202.5 ns | 68.75 ns | 64.31 ns | 8.41 KB |
69-
| FakeItEasy | 5,758.8 ns | 67.56 ns | 63.20 ns | 9.26 KB |
64+
| **TUnit.Mocks** | 786.1 ns | 6.61 ns | 5.52 ns | 3.2 KB |
65+
| Imposter | 556.7 ns | 4.76 ns | 3.97 ns | 2.82 KB |
66+
| Mockolate | 408.0 ns | 4.31 ns | 3.82 ns | 1.84 KB |
67+
| Moq | 188,268.6 ns | 860.81 ns | 763.09 ns | 13.85 KB |
68+
| NSubstitute | 5,557.3 ns | 40.04 ns | 35.49 ns | 8.41 KB |
69+
| FakeItEasy | 6,311.4 ns | 69.77 ns | 61.85 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 --> 175247
96-
bar [807.2, 549, 415.7, 146038.6, 5202.5, 5758.8]
95+
y-axis "Time (ns)" 0 --> 225923
96+
bar [786.1, 556.7, 408, 188268.6, 5557.3, 6311.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-08-21T02:46:27.792Z*
109+
*Last generated: 2026-08-22T02:40:44.558Z*

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-21** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-22** 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** | 1.438 μs | 0.0097 μs | 0.0086 μs | 6.23 KB |
24-
| Imposter | 2.065 μs | 0.0136 μs | 0.0114 μs | 15.71 KB |
25-
| Mockolate | 1.339 μs | 0.0267 μs | 0.0591 μs | 7.36 KB |
26-
| Moq | 242.209 μs | 1.7154 μs | 1.5206 μs | 36.46 KB |
27-
| NSubstitute | 13.449 μs | 0.1827 μs | 0.1620 μs | 26.72 KB |
28-
| FakeItEasy | 12.234 μs | 0.1206 μs | 0.1128 μs | 25.63 KB |
23+
| **TUnit.Mocks** | 1.919 μs | 0.0218 μs | 0.0204 μs | 6.23 KB |
24+
| Imposter | 2.835 μs | 0.0425 μs | 0.0398 μs | 15.71 KB |
25+
| Mockolate | 1.759 μs | 0.0145 μs | 0.0136 μs | 7.36 KB |
26+
| Moq | 410.270 μs | 2.6115 μs | 2.4428 μs | 36.16 KB |
27+
| NSubstitute | 19.877 μs | 0.2628 μs | 0.2329 μs | 26.85 KB |
28+
| FakeItEasy | 19.319 μs | 0.1706 μs | 0.1513 μ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 --> 291
55-
bar [1.438, 2.065, 1.339, 242.209, 13.449, 12.234]
54+
y-axis "Time (μs)" 0 --> 493
55+
bar [1.919, 2.835, 1.759, 410.27, 19.877, 19.319]
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-21T02:46:27.792Z*
68+
*Last generated: 2026-08-22T02:40:44.558Z*

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-21** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-22** 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** | 267.12 ns | 83.38 ns | 4.570 ns | 128 B |
24-
| Imposter | 299.06 ns | 66.41 ns | 3.640 ns | 168 B |
25-
| Mockolate | 108.81 ns | 43.87 ns | 2.405 ns | 84 B |
26-
| Moq | 772.43 ns | 40.84 ns | 2.239 ns | 376 B |
27-
| NSubstitute | 716.91 ns | 268.42 ns | 14.713 ns | 304 B |
28-
| FakeItEasy | 1,722.73 ns | 191.77 ns | 10.512 ns | 944 B |
23+
| **TUnit.Mocks** | 269.03 ns | 85.12 ns | 4.666 ns | 128 B |
24+
| Imposter | 302.37 ns | 78.56 ns | 4.306 ns | 168 B |
25+
| Mockolate | 105.95 ns | 24.82 ns | 1.360 ns | 84 B |
26+
| Moq | 775.37 ns | 220.28 ns | 12.074 ns | 376 B |
27+
| NSubstitute | 716.38 ns | 247.07 ns | 13.543 ns | 304 B |
28+
| FakeItEasy | 1,711.45 ns | 255.21 ns | 13.989 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 --> 2068
55-
bar [267.12, 299.06, 108.81, 772.43, 716.91, 1722.73]
54+
y-axis "Time (ns)" 0 --> 2054
55+
bar [269.03, 302.37, 105.95, 775.37, 716.38, 1711.45]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 173.02 ns | 62.46 ns | 3.423 ns | 96 B |
65-
| Imposter | 302.09 ns | 71.47 ns | 3.917 ns | 168 B |
66-
| Mockolate | 96.40 ns | 10.24 ns | 0.562 ns | 60 B |
67-
| Moq | 529.75 ns | 119.79 ns | 6.566 ns | 296 B |
68-
| NSubstitute | 590.63 ns | 177.13 ns | 9.709 ns | 272 B |
69-
| FakeItEasy | 1,547.39 ns | 139.64 ns | 7.654 ns | 776 B |
64+
| **TUnit.Mocks** | 175.33 ns | 56.99 ns | 3.124 ns | 96 B |
65+
| Imposter | 298.80 ns | 78.14 ns | 4.283 ns | 168 B |
66+
| Mockolate | 96.88 ns | 22.20 ns | 1.217 ns | 60 B |
67+
| Moq | 528.23 ns | 112.55 ns | 6.169 ns | 296 B |
68+
| NSubstitute | 621.74 ns | 233.66 ns | 12.808 ns | 272 B |
69+
| FakeItEasy | 1,541.55 ns | 115.31 ns | 6.320 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 --> 1857
96-
bar [173.02, 302.09, 96.4, 529.75, 590.63, 1547.39]
95+
y-axis "Time (ns)" 0 --> 1850
96+
bar [175.33, 298.8, 96.88, 528.23, 621.74, 1541.55]
9797
```
9898

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

103103
| Library | Mean | Error | StdDev | Allocated |
104104
|---------|------|-------|--------|-----------|
105-
| **TUnit.Mocks** | 26,926.50 ns | 8,667.69 ns | 475.105 ns | 12736 B |
106-
| Imposter | 29,441.08 ns | 9,531.61 ns | 522.460 ns | 16800 B |
107-
| Mockolate | 10,511.18 ns | 2,763.19 ns | 151.460 ns | 8400 B |
108-
| Moq | 81,016.02 ns | 88,793.47 ns | 4,867.070 ns | 37600 B |
109-
| NSubstitute | 72,247.48 ns | 25,418.10 ns | 1,393.252 ns | 30848 B |
110-
| FakeItEasy | 173,821.18 ns | 61,053.71 ns | 3,346.560 ns | 94400 B |
105+
| **TUnit.Mocks** | 26,812.18 ns | 10,983.27 ns | 602.030 ns | 12736 B |
106+
| Imposter | 29,466.17 ns | 8,702.29 ns | 477.002 ns | 16800 B |
107+
| Mockolate | 10,551.18 ns | 1,999.80 ns | 109.616 ns | 8400 B |
108+
| Moq | 78,241.31 ns | 12,304.04 ns | 674.426 ns | 37600 B |
109+
| NSubstitute | 70,529.92 ns | 34,670.98 ns | 1,900.433 ns | 30848 B |
110+
| FakeItEasy | 172,471.85 ns | 39,238.35 ns | 2,150.786 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 --> 208586
137-
bar [26926.5, 29441.08, 10511.18, 81016.02, 72247.48, 173821.18]
136+
y-axis "Time (ns)" 0 --> 206967
137+
bar [26812.18, 29466.17, 10551.18, 78241.31, 70529.92, 172471.85]
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-21T02:46:27.792Z*
150+
*Last generated: 2026-08-22T02:40:44.558Z*

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-21** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-22** 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** | 23.03 ns | 0.195 ns | 0.173 ns | 200 B |
24-
| Imposter | 78.30 ns | 0.412 ns | 0.365 ns | 440 B |
25-
| Mockolate | 14.01 ns | 0.163 ns | 0.144 ns | 160 B |
26-
| Moq | 986.81 ns | 11.046 ns | 9.224 ns | 2048 B |
27-
| NSubstitute | 1,360.48 ns | 7.596 ns | 7.105 ns | 5000 B |
28-
| FakeItEasy | 1,267.14 ns | 10.470 ns | 9.281 ns | 2715 B |
23+
| **TUnit.Mocks** | 30.15 ns | 0.170 ns | 0.151 ns | 200 B |
24+
| Imposter | 102.27 ns | 0.636 ns | 0.564 ns | 440 B |
25+
| Mockolate | 18.79 ns | 0.263 ns | 0.246 ns | 160 B |
26+
| Moq | 1,241.83 ns | 20.763 ns | 18.406 ns | 2048 B |
27+
| NSubstitute | 1,779.47 ns | 21.653 ns | 20.254 ns | 5000 B |
28+
| FakeItEasy | 1,737.66 ns | 24.540 ns | 19.159 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 --> 1633
55-
bar [23.03, 78.3, 14.01, 986.81, 1360.48, 1267.14]
54+
y-axis "Time (ns)" 0 --> 2136
55+
bar [30.15, 102.27, 18.79, 1241.83, 1779.47, 1737.66]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 23.09 ns | 0.276 ns | 0.258 ns | 200 B |
65-
| Imposter | 138.27 ns | 1.651 ns | 1.545 ns | 696 B |
66-
| Mockolate | 14.05 ns | 0.101 ns | 0.094 ns | 176 B |
67-
| Moq | 927.31 ns | 3.353 ns | 2.972 ns | 1912 B |
68-
| NSubstitute | 1,350.85 ns | 6.298 ns | 5.259 ns | 5000 B |
69-
| FakeItEasy | 1,259.15 ns | 8.341 ns | 7.802 ns | 2715 B |
64+
| **TUnit.Mocks** | 30.61 ns | 0.244 ns | 0.216 ns | 200 B |
65+
| Imposter | 160.01 ns | 1.111 ns | 1.039 ns | 696 B |
66+
| Mockolate | 18.18 ns | 0.166 ns | 0.139 ns | 176 B |
67+
| Moq | 1,262.87 ns | 13.088 ns | 11.602 ns | 1912 B |
68+
| NSubstitute | 1,774.00 ns | 28.982 ns | 27.109 ns | 5000 B |
69+
| FakeItEasy | 1,720.61 ns | 25.293 ns | 22.422 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 --> 1622
96-
bar [23.09, 138.27, 14.05, 927.31, 1350.85, 1259.15]
95+
y-axis "Time (ns)" 0 --> 2129
96+
bar [30.61, 160.01, 18.18, 1262.87, 1774, 1720.61]
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-21T02:46:27.792Z*
109+
*Last generated: 2026-08-22T02:40:44.558Z*

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-21** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-22** 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** | 576.3 ns | 11.28 ns | 11.59 ns | 2.34 KB |
24-
| Imposter | 739.9 ns | 14.00 ns | 23.00 ns | 6.12 KB |
25-
| Mockolate | 348.4 ns | 4.42 ns | 4.14 ns | 1.41 KB |
26-
| Moq | 179,489.1 ns | 1,024.08 ns | 957.92 ns | 28.46 KB |
27-
| NSubstitute | 5,499.8 ns | 47.38 ns | 44.32 ns | 9.01 KB |
28-
| FakeItEasy | 5,427.9 ns | 40.88 ns | 38.24 ns | 10.44 KB |
23+
| **TUnit.Mocks** | 545.2 ns | 7.79 ns | 7.29 ns | 2.34 KB |
24+
| Imposter | 849.8 ns | 17.01 ns | 28.88 ns | 6.12 KB |
25+
| Mockolate | 323.3 ns | 6.46 ns | 6.34 ns | 1.41 KB |
26+
| Moq | 439,529.6 ns | 2,210.71 ns | 1,959.74 ns | 28.63 KB |
27+
| NSubstitute | 6,234.2 ns | 75.30 ns | 70.44 ns | 9.06 KB |
28+
| FakeItEasy | 8,091.1 ns | 76.60 ns | 71.65 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 --> 215387
55-
bar [576.3, 739.9, 348.4, 179489.1, 5499.8, 5427.9]
54+
y-axis "Time (ns)" 0 --> 527436
55+
bar [545.2, 849.8, 323.3, 439529.6, 6234.2, 8091.1]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 851.2 ns | 10.81 ns | 10.11 ns | 3.15 KB |
65-
| Imposter | 1,339.3 ns | 26.52 ns | 65.06 ns | 10.59 KB |
66-
| Mockolate | 590.0 ns | 11.61 ns | 13.37 ns | 2.35 KB |
67-
| Moq | 49,172.5 ns | 90.15 ns | 75.28 ns | 16.63 KB |
68-
| NSubstitute | 9,824.5 ns | 39.78 ns | 33.22 ns | 20.31 KB |
69-
| FakeItEasy | 5,495.6 ns | 24.89 ns | 23.28 ns | 11.78 KB |
64+
| **TUnit.Mocks** | 801.5 ns | 11.71 ns | 10.96 ns | 3.15 KB |
65+
| Imposter | 1,414.3 ns | 27.51 ns | 32.75 ns | 10.59 KB |
66+
| Mockolate | 554.8 ns | 10.85 ns | 12.50 ns | 2.35 KB |
67+
| Moq | 114,836.0 ns | 738.61 ns | 654.76 ns | 16.53 KB |
68+
| NSubstitute | 12,917.8 ns | 244.66 ns | 228.85 ns | 20.5 KB |
69+
| FakeItEasy | 8,231.9 ns | 161.58 ns | 151.14 ns | 11.79 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 --> 59007
96-
bar [851.2, 1339.3, 590, 49172.5, 9824.5, 5495.6]
95+
y-axis "Time (ns)" 0 --> 137804
96+
bar [801.5, 1414.3, 554.8, 114836, 12917.8, 8231.9]
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-21T02:46:27.792Z*
109+
*Last generated: 2026-08-22T02:40:44.558Z*

0 commit comments

Comments
 (0)