Skip to content

Commit c7ac3bd

Browse files
authored
chore: update mock benchmark results (#6617)
1 parent e4ced97 commit c7ac3bd

15 files changed

Lines changed: 675 additions & 675 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-14** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-15** 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** | 786.8 ns | 14.75 ns | 21.62 ns | 3.11 KB |
24-
| Imposter | 578.3 ns | 10.90 ns | 16.65 ns | 2.66 KB |
25-
| Mockolate | 430.4 ns | 6.55 ns | 6.12 ns | 1.8 KB |
26-
| Moq | 137,034.5 ns | 2,241.41 ns | 1,986.95 ns | 13.26 KB |
27-
| NSubstitute | 4,740.0 ns | 17.94 ns | 14.98 ns | 7.85 KB |
28-
| FakeItEasy | 5,309.2 ns | 80.01 ns | 74.84 ns | 7.43 KB |
23+
| **TUnit.Mocks** | 660.5 ns | 5.79 ns | 5.41 ns | 3.11 KB |
24+
| Imposter | 459.7 ns | 3.23 ns | 3.02 ns | 2.66 KB |
25+
| Mockolate | 351.0 ns | 2.90 ns | 2.71 ns | 1.8 KB |
26+
| Moq | 135,807.3 ns | 1,092.65 ns | 912.41 ns | 13.29 KB |
27+
| NSubstitute | 4,478.7 ns | 46.67 ns | 43.65 ns | 7.85 KB |
28+
| FakeItEasy | 4,770.3 ns | 29.28 ns | 25.95 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 --> 164442
55-
bar [786.8, 578.3, 430.4, 137034.5, 4740, 5309.2]
54+
y-axis "Time (ns)" 0 --> 162969
55+
bar [660.5, 459.7, 351, 135807.3, 4478.7, 4770.3]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 951.1 ns | 10.33 ns | 9.66 ns | 3.2 KB |
65-
| Imposter | 620.2 ns | 12.29 ns | 12.62 ns | 2.82 KB |
66-
| Mockolate | 497.2 ns | 9.52 ns | 8.91 ns | 1.84 KB |
67-
| Moq | 147,571.5 ns | 1,055.75 ns | 935.89 ns | 13.97 KB |
68-
| NSubstitute | 5,532.4 ns | 14.80 ns | 13.12 ns | 8.41 KB |
69-
| FakeItEasy | 6,488.5 ns | 48.43 ns | 45.30 ns | 9.26 KB |
64+
| **TUnit.Mocks** | 786.5 ns | 4.04 ns | 3.58 ns | 3.2 KB |
65+
| Imposter | 538.6 ns | 1.39 ns | 1.09 ns | 2.82 KB |
66+
| Mockolate | 410.9 ns | 6.75 ns | 5.98 ns | 1.84 KB |
67+
| Moq | 144,420.7 ns | 1,375.11 ns | 1,286.28 ns | 13.73 KB |
68+
| NSubstitute | 5,039.6 ns | 48.57 ns | 45.43 ns | 8.41 KB |
69+
| FakeItEasy | 5,832.9 ns | 70.23 ns | 65.70 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 --> 177086
96-
bar [951.1, 620.2, 497.2, 147571.5, 5532.4, 6488.5]
95+
y-axis "Time (ns)" 0 --> 173305
96+
bar [786.5, 538.6, 410.9, 144420.7, 5039.6, 5832.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-14T03:10:39.371Z*
109+
*Last generated: 2026-08-15T02:39:16.112Z*

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-14** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-15** 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.829 μs | 0.0160 μs | 0.0134 μs | 6.23 KB |
24-
| Imposter | 2.814 μs | 0.0561 μs | 0.0840 μs | 15.71 KB |
25-
| Mockolate | 1.685 μs | 0.0337 μs | 0.0389 μs | 7.36 KB |
26-
| Moq | 403.531 μs | 3.6113 μs | 3.3780 μs | 36.35 KB |
27-
| NSubstitute | 19.141 μs | 0.2215 μs | 0.2072 μs | 26.72 KB |
28-
| FakeItEasy | 18.762 μs | 0.3670 μs | 0.4226 μs | 25.52 KB |
23+
| **TUnit.Mocks** | 1.982 μs | 0.0211 μs | 0.0198 μs | 6.23 KB |
24+
| Imposter | 2.931 μs | 0.0310 μs | 0.0290 μs | 15.71 KB |
25+
| Mockolate | 1.908 μs | 0.0265 μs | 0.0248 μs | 7.36 KB |
26+
| Moq | 313.431 μs | 3.1761 μs | 2.6522 μs | 36.46 KB |
27+
| NSubstitute | 18.399 μs | 0.1009 μs | 0.0895 μs | 26.72 KB |
28+
| FakeItEasy | 16.442 μs | 0.1971 μs | 0.1843 μ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 --> 485
55-
bar [1.829, 2.814, 1.685, 403.531, 19.141, 18.762]
54+
y-axis "Time (μs)" 0 --> 377
55+
bar [1.982, 2.931, 1.908, 313.431, 18.399, 16.442]
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-14T03:10:39.371Z*
68+
*Last generated: 2026-08-15T02:39:16.112Z*

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-14** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-15** 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.45 ns | 79.80 ns | 4.374 ns | 128 B |
24-
| Imposter | 289.00 ns | 93.15 ns | 5.106 ns | 168 B |
25-
| Mockolate | 101.83 ns | 11.66 ns | 0.639 ns | 84 B |
26-
| Moq | 793.18 ns | 106.36 ns | 5.830 ns | 376 B |
27-
| NSubstitute | 705.40 ns | 182.39 ns | 9.997 ns | 304 B |
28-
| FakeItEasy | 1,719.24 ns | 1,055.03 ns | 57.830 ns | 944 B |
23+
| **TUnit.Mocks** | 278.80 ns | 108.27 ns | 5.935 ns | 128 B |
24+
| Imposter | 302.20 ns | 86.72 ns | 4.754 ns | 168 B |
25+
| Mockolate | 116.19 ns | 34.63 ns | 1.898 ns | 84 B |
26+
| Moq | 807.41 ns | 318.36 ns | 17.450 ns | 376 B |
27+
| NSubstitute | 720.58 ns | 361.94 ns | 19.839 ns | 304 B |
28+
| FakeItEasy | 1,802.93 ns | 95.33 ns | 5.226 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 --> 2064
55-
bar [268.45, 289, 101.83, 793.18, 705.4, 1719.24]
54+
y-axis "Time (ns)" 0 --> 2164
55+
bar [278.8, 302.2, 116.19, 807.41, 720.58, 1802.93]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 165.63 ns | 73.61 ns | 4.035 ns | 96 B |
65-
| Imposter | 285.75 ns | 97.75 ns | 5.358 ns | 168 B |
66-
| Mockolate | 97.13 ns | 99.25 ns | 5.440 ns | 60 B |
67-
| Moq | 514.02 ns | 74.25 ns | 4.070 ns | 296 B |
68-
| NSubstitute | 601.32 ns | 166.86 ns | 9.146 ns | 272 B |
69-
| FakeItEasy | 1,503.70 ns | 106.49 ns | 5.837 ns | 776 B |
64+
| **TUnit.Mocks** | 170.31 ns | 74.67 ns | 4.093 ns | 96 B |
65+
| Imposter | 298.67 ns | 65.81 ns | 3.607 ns | 168 B |
66+
| Mockolate | 94.48 ns | 29.45 ns | 1.614 ns | 60 B |
67+
| Moq | 559.29 ns | 82.34 ns | 4.513 ns | 296 B |
68+
| NSubstitute | 621.08 ns | 286.36 ns | 15.697 ns | 272 B |
69+
| FakeItEasy | 1,743.22 ns | 425.36 ns | 23.316 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 --> 1805
96-
bar [165.63, 285.75, 97.13, 514.02, 601.32, 1503.7]
95+
y-axis "Time (ns)" 0 --> 2092
96+
bar [170.31, 298.67, 94.48, 559.29, 621.08, 1743.22]
9797
```
9898

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

103103
| Library | Mean | Error | StdDev | Allocated |
104104
|---------|------|-------|--------|-----------|
105-
| **TUnit.Mocks** | 26,709.70 ns | 9,762.66 ns | 535.125 ns | 12736 B |
106-
| Imposter | 29,107.61 ns | 4,931.72 ns | 270.324 ns | 16800 B |
107-
| Mockolate | 10,542.20 ns | 5,476.53 ns | 300.187 ns | 8400 B |
108-
| Moq | 76,246.07 ns | 6,397.02 ns | 350.642 ns | 37600 B |
109-
| NSubstitute | 70,813.61 ns | 33,905.80 ns | 1,858.491 ns | 30848 B |
110-
| FakeItEasy | 171,122.68 ns | 44,291.21 ns | 2,427.751 ns | 94400 B |
105+
| **TUnit.Mocks** | 28,191.63 ns | 8,753.65 ns | 479.817 ns | 12736 B |
106+
| Imposter | 30,344.16 ns | 10,768.12 ns | 590.237 ns | 16800 B |
107+
| Mockolate | 10,439.80 ns | 4,975.96 ns | 272.749 ns | 8400 B |
108+
| Moq | 80,994.18 ns | 22,082.13 ns | 1,210.396 ns | 37600 B |
109+
| NSubstitute | 71,527.35 ns | 9,287.19 ns | 509.062 ns | 30848 B |
110+
| FakeItEasy | 171,798.14 ns | 30,042.68 ns | 1,646.741 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 --> 205348
137-
bar [26709.7, 29107.61, 10542.2, 76246.07, 70813.61, 171122.68]
136+
y-axis "Time (ns)" 0 --> 206158
137+
bar [28191.63, 30344.16, 10439.8, 80994.18, 71527.35, 171798.14]
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-14T03:10:39.371Z*
150+
*Last generated: 2026-08-15T02:39:16.112Z*

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-14** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-15** 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** | 33.65 ns | 0.116 ns | 0.103 ns | 200 B |
24-
| Imposter | 105.36 ns | 0.943 ns | 0.882 ns | 440 B |
25-
| Mockolate | 19.91 ns | 0.167 ns | 0.148 ns | 160 B |
26-
| Moq | 1,238.69 ns | 19.359 ns | 18.109 ns | 2048 B |
27-
| NSubstitute | 1,790.32 ns | 31.290 ns | 29.269 ns | 5000 B |
28-
| FakeItEasy | 1,772.04 ns | 35.277 ns | 60.850 ns | 2715 B |
23+
| **TUnit.Mocks** | 28.06 ns | 0.174 ns | 0.163 ns | 200 B |
24+
| Imposter | 90.15 ns | 0.428 ns | 0.400 ns | 440 B |
25+
| Mockolate | 17.07 ns | 0.094 ns | 0.088 ns | 160 B |
26+
| Moq | 1,340.32 ns | 19.406 ns | 18.153 ns | 2048 B |
27+
| NSubstitute | 1,822.02 ns | 9.730 ns | 9.101 ns | 5000 B |
28+
| FakeItEasy | 1,668.83 ns | 9.096 ns | 7.595 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 --> 2149
55-
bar [33.65, 105.36, 19.91, 1238.69, 1790.32, 1772.04]
54+
y-axis "Time (ns)" 0 --> 2187
55+
bar [28.06, 90.15, 17.07, 1340.32, 1822.02, 1668.83]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 30.82 ns | 0.664 ns | 0.765 ns | 200 B |
65-
| Imposter | 157.54 ns | 1.012 ns | 0.947 ns | 696 B |
66-
| Mockolate | 18.45 ns | 0.152 ns | 0.135 ns | 176 B |
67-
| Moq | 1,318.96 ns | 16.769 ns | 15.686 ns | 1912 B |
68-
| NSubstitute | 1,872.39 ns | 26.909 ns | 25.171 ns | 5000 B |
69-
| FakeItEasy | 1,898.57 ns | 36.613 ns | 54.801 ns | 2715 B |
64+
| **TUnit.Mocks** | 27.44 ns | 0.192 ns | 0.171 ns | 200 B |
65+
| Imposter | 141.92 ns | 1.223 ns | 1.022 ns | 696 B |
66+
| Mockolate | 17.07 ns | 0.067 ns | 0.063 ns | 176 B |
67+
| Moq | 1,358.62 ns | 6.475 ns | 5.740 ns | 1912 B |
68+
| NSubstitute | 1,783.29 ns | 9.374 ns | 8.310 ns | 5000 B |
69+
| FakeItEasy | 1,686.55 ns | 5.926 ns | 4.948 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 --> 2279
96-
bar [30.82, 157.54, 18.45, 1318.96, 1872.39, 1898.57]
95+
y-axis "Time (ns)" 0 --> 2140
96+
bar [27.44, 141.92, 17.07, 1358.62, 1783.29, 1686.55]
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-14T03:10:39.371Z*
109+
*Last generated: 2026-08-15T02:39:16.112Z*

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-14** from the latest CI run.
12+
This benchmark was automatically generated on **2026-08-15** 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** | 423.5 ns | 2.14 ns | 2.00 ns | 2.34 KB |
24-
| Imposter | 599.2 ns | 1.86 ns | 1.74 ns | 6.12 KB |
25-
| Mockolate | 256.9 ns | 1.13 ns | 1.00 ns | 1.41 KB |
26-
| Moq | 235,541.7 ns | 949.89 ns | 888.52 ns | 28.56 KB |
27-
| NSubstitute | 4,617.9 ns | 34.57 ns | 32.34 ns | 9.06 KB |
28-
| FakeItEasy | 5,429.5 ns | 19.18 ns | 17.94 ns | 10.45 KB |
23+
| **TUnit.Mocks** | 573.6 ns | 5.71 ns | 5.34 ns | 2.34 KB |
24+
| Imposter | 934.0 ns | 9.74 ns | 8.63 ns | 6.12 KB |
25+
| Mockolate | 339.9 ns | 6.17 ns | 5.77 ns | 1.41 KB |
26+
| Moq | 430,731.3 ns | 2,505.98 ns | 2,221.48 ns | 28.52 KB |
27+
| NSubstitute | 6,582.1 ns | 42.22 ns | 37.43 ns | 9.01 KB |
28+
| FakeItEasy | 8,413.4 ns | 83.37 ns | 77.99 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 --> 282651
55-
bar [423.5, 599.2, 256.9, 235541.7, 4617.9, 5429.5]
54+
y-axis "Time (ns)" 0 --> 516878
55+
bar [573.6, 934, 339.9, 430731.3, 6582.1, 8413.4]
5656
```
5757

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

6262
| Library | Mean | Error | StdDev | Allocated |
6363
|---------|------|-------|--------|-----------|
64-
| **TUnit.Mocks** | 637.3 ns | 2.26 ns | 2.11 ns | 3.15 KB |
65-
| Imposter | 1,075.7 ns | 7.03 ns | 6.24 ns | 10.59 KB |
66-
| Mockolate | 439.5 ns | 2.62 ns | 2.45 ns | 2.35 KB |
67-
| Moq | 68,467.0 ns | 280.75 ns | 234.44 ns | 16.53 KB |
68-
| NSubstitute | 8,887.1 ns | 39.55 ns | 36.99 ns | 20.31 KB |
69-
| FakeItEasy | 5,190.4 ns | 27.32 ns | 24.22 ns | 11.71 KB |
64+
| **TUnit.Mocks** | 876.4 ns | 12.84 ns | 12.01 ns | 3.15 KB |
65+
| Imposter | 1,536.6 ns | 31.17 ns | 91.91 ns | 10.59 KB |
66+
| Mockolate | 571.6 ns | 11.35 ns | 16.98 ns | 2.35 KB |
67+
| Moq | 115,934.2 ns | 924.60 ns | 864.88 ns | 16.53 KB |
68+
| NSubstitute | 13,204.4 ns | 167.22 ns | 171.72 ns | 20.31 KB |
69+
| FakeItEasy | 8,241.2 ns | 96.44 ns | 85.49 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 --> 82161
96-
bar [637.3, 1075.7, 439.5, 68467, 8887.1, 5190.4]
95+
y-axis "Time (ns)" 0 --> 139122
96+
bar [876.4, 1536.6, 571.6, 115934.2, 13204.4, 8241.2]
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-14T03:10:39.371Z*
109+
*Last generated: 2026-08-15T02:39:16.112Z*

0 commit comments

Comments
 (0)