Skip to content

Commit 6fffd35

Browse files
authored
chore: update mock benchmark results (#6579)
1 parent 6f1856d commit 6fffd35

15 files changed

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

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 743.5 ns | 10.83 ns | 9.04 ns | 3.11 KB |
24-
| Imposter | 503.1 ns | 5.08 ns | 4.50 ns | 2.66 KB |
25-
| Mockolate | 368.2 ns | 7.03 ns | 6.57 ns | 1.8 KB |
26-
| Moq | 139,650.3 ns | 1,091.82 ns | 967.87 ns | 13.14 KB |
27-
| NSubstitute | 4,727.9 ns | 92.15 ns | 81.69 ns | 7.85 KB |
28-
| FakeItEasy | 5,176.0 ns | 51.93 ns | 46.03 ns | 7.44 KB |
23+
| **TUnit.Mocks** | 755.0 ns | 14.33 ns | 14.72 ns | 3.11 KB |
24+
| Imposter | 513.0 ns | 9.75 ns | 11.61 ns | 2.66 KB |
25+
| Mockolate | 405.4 ns | 7.48 ns | 6.63 ns | 1.8 KB |
26+
| Moq | 139,780.7 ns | 1,233.48 ns | 1,030.02 ns | 13.29 KB |
27+
| NSubstitute | 4,317.4 ns | 29.88 ns | 26.49 ns | 7.85 KB |
28+
| FakeItEasy | 5,100.1 ns | 36.78 ns | 34.40 ns | 7.43 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 --> 167581
55-
bar [743.5, 503.1, 368.2, 139650.3, 4727.9, 5176]
54+
y-axis "Time (ns)" 0 --> 167737
55+
bar [755, 513, 405.4, 139780.7, 4317.4, 5100.1]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 837.6 ns | 7.54 ns | 6.69 ns | 3.2 KB |
65-
| Imposter | 582.3 ns | 11.45 ns | 16.42 ns | 2.82 KB |
66-
| Mockolate | 396.1 ns | 5.80 ns | 5.43 ns | 1.84 KB |
67-
| Moq | 145,933.4 ns | 1,328.24 ns | 1,242.43 ns | 13.73 KB |
68-
| NSubstitute | 5,276.3 ns | 68.88 ns | 53.78 ns | 8.41 KB |
69-
| FakeItEasy | 5,958.8 ns | 62.36 ns | 58.34 ns | 9.4 KB |
64+
| **TUnit.Mocks** | 945.9 ns | 6.15 ns | 4.80 ns | 3.2 KB |
65+
| Imposter | 567.6 ns | 10.98 ns | 11.75 ns | 2.82 KB |
66+
| Mockolate | 455.8 ns | 6.10 ns | 5.71 ns | 1.84 KB |
67+
| Moq | 145,013.0 ns | 1,160.82 ns | 1,029.03 ns | 13.75 KB |
68+
| NSubstitute | 4,942.4 ns | 43.79 ns | 40.96 ns | 8.41 KB |
69+
| FakeItEasy | 6,264.6 ns | 58.81 ns | 52.14 ns | 9.38 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 --> 175121
96-
bar [837.6, 582.3, 396.1, 145933.4, 5276.3, 5958.8]
95+
y-axis "Time (ns)" 0 --> 174016
96+
bar [945.9, 567.6, 455.8, 145013, 4942.4, 6264.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-09T03:02:07.270Z*
109+
*Last generated: 2026-08-11T02:59:33.302Z*

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

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 1.962 μs | 0.0368 μs | 0.0326 μs | 6.23 KB |
24-
| Imposter | 2.709 μs | 0.0291 μs | 0.0273 μs | 15.71 KB |
25-
| Mockolate | 1.696 μs | 0.0334 μs | 0.0358 μs | 7.36 KB |
26-
| Moq | 410.977 μs | 2.1739 μs | 1.9271 μs | 36.27 KB |
27-
| NSubstitute | 17.649 μs | 0.2649 μs | 0.2478 μs | 26.72 KB |
28-
| FakeItEasy | 18.513 μs | 0.3696 μs | 0.3457 μs | 25.68 KB |
23+
| **TUnit.Mocks** | 1.825 μs | 0.0245 μs | 0.0229 μs | 6.23 KB |
24+
| Imposter | 2.576 μs | 0.0494 μs | 0.0588 μs | 15.71 KB |
25+
| Mockolate | 1.536 μs | 0.0058 μs | 0.0049 μs | 7.36 KB |
26+
| Moq | 311.027 μs | 1.0347 μs | 0.8640 μs | 36.58 KB |
27+
| NSubstitute | 15.793 μs | 0.0655 μs | 0.0580 μs | 26.72 KB |
28+
| FakeItEasy | 15.591 μs | 0.1619 μs | 0.1352 μs | 25.6 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 --> 494
55-
bar [1.962, 2.709, 1.696, 410.977, 17.649, 18.513]
54+
y-axis "Time (μs)" 0 --> 374
55+
bar [1.825, 2.576, 1.536, 311.027, 15.793, 15.591]
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-09T03:02:07.270Z*
68+
*Last generated: 2026-08-11T02:59:33.302Z*

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

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 278.98 ns | 100.15 ns | 5.490 ns | 128 B |
24-
| Imposter | 295.43 ns | 102.58 ns | 5.623 ns | 168 B |
25-
| Mockolate | 107.08 ns | 39.43 ns | 2.162 ns | 84 B |
26-
| Moq | 823.66 ns | 61.62 ns | 3.378 ns | 376 B |
27-
| NSubstitute | 722.95 ns | 161.88 ns | 8.873 ns | 304 B |
28-
| FakeItEasy | 1,794.39 ns | 374.06 ns | 20.503 ns | 944 B |
23+
| **TUnit.Mocks** | 281.7 ns | 215.23 ns | 11.80 ns | 128 B |
24+
| Imposter | 307.0 ns | 123.12 ns | 6.75 ns | 168 B |
25+
| Mockolate | 115.4 ns | 149.62 ns | 8.20 ns | 84 B |
26+
| Moq | 885.1 ns | 644.47 ns | 35.33 ns | 376 B |
27+
| NSubstitute | 815.8 ns | 166.85 ns | 9.15 ns | 304 B |
28+
| FakeItEasy | 1,883.4 ns | 222.68 ns | 12.21 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 --> 2154
55-
bar [278.98, 295.43, 107.08, 823.66, 722.95, 1794.39]
54+
y-axis "Time (ns)" 0 --> 2261
55+
bar [281.7, 307, 115.4, 885.1, 815.8, 1883.4]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 166.28 ns | 74.56 ns | 4.087 ns | 96 B |
65-
| Imposter | 301.58 ns | 74.85 ns | 4.103 ns | 168 B |
66-
| Mockolate | 99.12 ns | 25.15 ns | 1.378 ns | 60 B |
67-
| Moq | 573.48 ns | 183.22 ns | 10.043 ns | 296 B |
68-
| NSubstitute | 660.88 ns | 235.83 ns | 12.927 ns | 272 B |
69-
| FakeItEasy | 1,677.56 ns | 180.80 ns | 9.910 ns | 776 B |
64+
| **TUnit.Mocks** | 175.0 ns | 55.53 ns | 3.04 ns | 96 B |
65+
| Imposter | 313.8 ns | 121.75 ns | 6.67 ns | 168 B |
66+
| Mockolate | 102.7 ns | 64.46 ns | 3.53 ns | 60 B |
67+
| Moq | 571.6 ns | 83.26 ns | 4.56 ns | 296 B |
68+
| NSubstitute | 643.3 ns | 310.76 ns | 17.03 ns | 272 B |
69+
| FakeItEasy | 1,804.7 ns | 626.86 ns | 34.36 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 --> 2014
96-
bar [166.28, 301.58, 99.12, 573.48, 660.88, 1677.56]
95+
y-axis "Time (ns)" 0 --> 2166
96+
bar [175, 313.8, 102.7, 571.6, 643.3, 1804.7]
9797
```
9898

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

103103
| Library | Mean | Error | StdDev | Allocated |
104104
|---------|------|-------|--------|-----------|
105-
| **TUnit.Mocks** | 28,012.03 ns | 14,418.30 ns | 790.316 ns | 12736 B |
106-
| Imposter | 30,301.44 ns | 8,409.07 ns | 460.930 ns | 16800 B |
107-
| Mockolate | 11,845.57 ns | 4,495.45 ns | 246.411 ns | 8400 B |
108-
| Moq | 86,814.61 ns | 35,464.72 ns | 1,943.941 ns | 37600 B |
109-
| NSubstitute | 74,072.23 ns | 9,500.99 ns | 520.781 ns | 30848 B |
110-
| FakeItEasy | 191,167.94 ns | 17,272.06 ns | 946.740 ns | 94400 B |
105+
| **TUnit.Mocks** | 28,317.4 ns | 11,462.18 ns | 628.28 ns | 12736 B |
106+
| Imposter | 30,708.3 ns | 8,690.78 ns | 476.37 ns | 16800 B |
107+
| Mockolate | 14,309.2 ns | 6,451.33 ns | 353.62 ns | 8400 B |
108+
| Moq | 87,054.1 ns | 20,546.55 ns | 1,126.23 ns | 37600 B |
109+
| NSubstitute | 78,510.5 ns | 33,630.68 ns | 1,843.41 ns | 30848 B |
110+
| FakeItEasy | 189,368.4 ns | 100,333.16 ns | 5,499.60 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 --> 229402
137-
bar [28012.03, 30301.44, 11845.57, 86814.61, 74072.23, 191167.94]
136+
y-axis "Time (ns)" 0 --> 227243
137+
bar [28317.4, 30708.3, 14309.2, 87054.1, 78510.5, 189368.4]
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-09T03:02:07.270Z*
150+
*Last generated: 2026-08-11T02:59:33.302Z*

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

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 32.00 ns | 0.697 ns | 0.716 ns | 200 B |
24-
| Imposter | 99.84 ns | 0.804 ns | 0.752 ns | 440 B |
25-
| Mockolate | 19.45 ns | 0.355 ns | 0.332 ns | 160 B |
26-
| Moq | 1,396.66 ns | 27.840 ns | 26.042 ns | 2048 B |
27-
| NSubstitute | 1,981.38 ns | 21.556 ns | 19.109 ns | 5000 B |
28-
| FakeItEasy | 1,884.17 ns | 27.232 ns | 24.140 ns | 2715 B |
23+
| **TUnit.Mocks** | 25.97 ns | 0.417 ns | 0.390 ns | 200 B |
24+
| Imposter | 79.10 ns | 0.588 ns | 0.491 ns | 440 B |
25+
| Mockolate | 15.38 ns | 0.114 ns | 0.101 ns | 160 B |
26+
| Moq | 999.47 ns | 19.523 ns | 23.240 ns | 2048 B |
27+
| NSubstitute | 1,428.16 ns | 28.056 ns | 32.309 ns | 5000 B |
28+
| FakeItEasy | 1,369.49 ns | 23.947 ns | 37.283 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 --> 2378
55-
bar [32, 99.84, 19.45, 1396.66, 1981.38, 1884.17]
54+
y-axis "Time (ns)" 0 --> 1714
55+
bar [25.97, 79.1, 15.38, 999.47, 1428.16, 1369.49]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 31.89 ns | 0.677 ns | 0.600 ns | 200 B |
65-
| Imposter | 156.80 ns | 1.616 ns | 1.512 ns | 696 B |
66-
| Mockolate | 20.22 ns | 0.451 ns | 0.586 ns | 176 B |
67-
| Moq | 1,411.97 ns | 5.741 ns | 5.090 ns | 1912 B |
68-
| NSubstitute | 1,968.82 ns | 29.645 ns | 27.730 ns | 5000 B |
69-
| FakeItEasy | 1,970.15 ns | 27.717 ns | 25.926 ns | 2715 B |
64+
| **TUnit.Mocks** | 23.40 ns | 0.412 ns | 0.386 ns | 200 B |
65+
| Imposter | 122.91 ns | 0.279 ns | 0.218 ns | 696 B |
66+
| Mockolate | 13.84 ns | 0.091 ns | 0.081 ns | 176 B |
67+
| Moq | 983.67 ns | 8.014 ns | 7.497 ns | 1912 B |
68+
| NSubstitute | 1,415.68 ns | 28.163 ns | 27.660 ns | 5000 B |
69+
| FakeItEasy | 1,420.88 ns | 22.770 ns | 21.299 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 --> 2365
96-
bar [31.89, 156.8, 20.22, 1411.97, 1968.82, 1970.15]
95+
y-axis "Time (ns)" 0 --> 1706
96+
bar [23.4, 122.91, 13.84, 983.67, 1415.68, 1420.88]
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-09T03:02:07.270Z*
109+
*Last generated: 2026-08-11T02:59:33.302Z*

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

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

2121
| Library | Mean | Error | StdDev | Allocated |
2222
|---------|------|-------|--------|-----------|
23-
| **TUnit.Mocks** | 542.2 ns | 4.01 ns | 3.55 ns | 2.34 KB |
24-
| Imposter | 777.7 ns | 4.92 ns | 4.36 ns | 6.12 KB |
25-
| Mockolate | 328.5 ns | 3.07 ns | 2.72 ns | 1.41 KB |
26-
| Moq | 301,488.3 ns | 2,223.31 ns | 1,970.91 ns | 28.52 KB |
27-
| NSubstitute | 5,315.1 ns | 63.31 ns | 59.22 ns | 9.01 KB |
28-
| FakeItEasy | 7,089.2 ns | 47.34 ns | 41.97 ns | 10.45 KB |
23+
| **TUnit.Mocks** | 504.8 ns | 2.77 ns | 2.45 ns | 2.34 KB |
24+
| Imposter | 782.8 ns | 5.08 ns | 4.50 ns | 6.12 KB |
25+
| Mockolate | 303.7 ns | 1.51 ns | 1.41 ns | 1.41 KB |
26+
| Moq | 425,910.1 ns | 3,655.85 ns | 3,240.81 ns | 28.52 KB |
27+
| NSubstitute | 5,516.3 ns | 93.15 ns | 82.57 ns | 9.01 KB |
28+
| FakeItEasy | 8,228.6 ns | 30.48 ns | 27.02 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 --> 361786
55-
bar [542.2, 777.7, 328.5, 301488.3, 5315.1, 7089.2]
54+
y-axis "Time (ns)" 0 --> 511093
55+
bar [504.8, 782.8, 303.7, 425910.1, 5516.3, 8228.6]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 807.8 ns | 5.72 ns | 5.35 ns | 3.15 KB |
65-
| Imposter | 1,391.3 ns | 24.21 ns | 22.65 ns | 10.59 KB |
66-
| Mockolate | 565.4 ns | 4.81 ns | 4.50 ns | 2.35 KB |
67-
| Moq | 87,912.4 ns | 728.63 ns | 645.91 ns | 16.53 KB |
68-
| NSubstitute | 10,799.3 ns | 188.72 ns | 176.53 ns | 20.31 KB |
69-
| FakeItEasy | 6,970.8 ns | 97.95 ns | 86.83 ns | 11.79 KB |
64+
| **TUnit.Mocks** | 779.3 ns | 14.64 ns | 13.69 ns | 3.15 KB |
65+
| Imposter | 1,454.5 ns | 29.16 ns | 65.83 ns | 10.59 KB |
66+
| Mockolate | 557.0 ns | 10.98 ns | 15.03 ns | 2.35 KB |
67+
| Moq | 116,106.6 ns | 650.83 ns | 608.79 ns | 16.64 KB |
68+
| NSubstitute | 12,669.9 ns | 96.37 ns | 90.15 ns | 20.5 KB |
69+
| FakeItEasy | 8,169.0 ns | 154.00 ns | 164.78 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 --> 105495
96-
bar [807.8, 1391.3, 565.4, 87912.4, 10799.3, 6970.8]
95+
y-axis "Time (ns)" 0 --> 139328
96+
bar [779.3, 1454.5, 557, 116106.6, 12669.9, 8169]
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-09T03:02:07.270Z*
109+
*Last generated: 2026-08-11T02:59:33.302Z*

0 commit comments

Comments
 (0)