Skip to content

docs: remove the migration pages that Mockolate.Migration supersedes - #989

Merged
vbreuss merged 1 commit into
mainfrom
docs/remove-migration-pages
Nov 16, 2026
Merged

vbreuss merged 1 commit into
mainfrom
docs/remove-migration-pages

Conversation

@vbreuss

@vbreuss vbreuss commented Nov 16, 2026

Copy link
Copy Markdown
Member

Mockolate.Migration owns the whole migration section of the docs, and the docs site no longer publishes Docs/pages/11-migration from this repository. Merge this after the Mockolate.Migration PR that sets the position of the section in its _category_.json, and before the Testably.Site PR that drops the exclusion.

Mockolate.Migration owns the whole migration section of the docs, and the docs site no longer publishes `Docs/pages/11-migration` from this repository. Merge this after the Mockolate.Migration PR that sets the position of the section in its `_category_.json`, and before the Testably.Site PR that drops the exclusion.
@vbreuss vbreuss self-assigned this Nov 16, 2026
@vbreuss vbreuss added the documentation Improvements or additions to documentation label Nov 16, 2026
@vbreuss
vbreuss merged commit 76d7c77 into main Nov 16, 2026
19 checks passed
@vbreuss
vbreuss deleted the docs/remove-migration-pages branch November 16, 2026 10:27
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🚀 Benchmark Results

Compared to main @​ 649b3ebc: memory to the latest run, time to the median of the last 10 runs, as the runners differ in speed. A relative change marks when Mockolate gets more than 15% faster or slower relative to Imposter and TUnitMocks: 🔴 / 🟢 against both of them, 🔸 / 🔹 against only one.

CallbackBenchmarks

✅ No changes in memory or relative performance (1 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Callback 261.2 ns → 388.2 ns (+49%) 1,552 B → 1,552 B 0.67× → 0.64× 1.66× → 1.60×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
INTEL XEON PLATINUM 8573C 3.00GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4

Job=InProcess  Toolchain=InProcessEmitToolchain  IterationCount=15  
LaunchCount=1  WarmupCount=10  

Callback Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 388.2 ns 3.69 ns 3.45 ns 1.00 1552 B 1.00
Imposter 246.6 ns 0.99 ns 0.83 ns 0.64 616 B 0.40
TUnitMocks 620.4 ns 2.62 ns 2.32 ns 1.60 2056 B 1.32
Moq 46,746.4 ns 218.40 ns 182.37 ns 120.43 9033 B 5.82
NSubstitute 4,197.0 ns 31.48 ns 29.45 ns 10.81 7864 B 5.07
FakeItEasy 3,716.5 ns 23.32 ns 21.82 ns 9.57 6924 B 4.46

CompleteEventBenchmarks

✅ No changes in memory or relative performance (1 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Event 222.5 ns → 199.9 ns (-10%) 1,000 B → 1,000 B 0.81× → 0.85× 0.75× → 0.78×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 3.22GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3

Job=InProcess  Toolchain=InProcessEmitToolchain  IterationCount=15  
LaunchCount=1  WarmupCount=10  

Event Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 199.9 ns 1.78 ns 1.39 ns 1.00 1000 B 1.00
Imposter 170.5 ns 1.02 ns 0.96 ns 0.85 512 B 0.51
TUnitMocks 156.2 ns 1.76 ns 1.56 ns 0.78 1392 B 1.39
Moq 14,677.5 ns 228.88 ns 191.13 ns 73.43 12761 B 12.76
NSubstitute 5,591.7 ns 40.49 ns 37.88 ns 27.97 9192 B 9.19
FakeItEasy 224,227.4 ns 2,818.48 ns 2,636.41 ns 1,121.75 15618 B 15.62

CompleteIndexerBenchmarks

✅ No changes in memory or relative performance (2 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter
Indexer (N=1) 604.0 ns → 651.1 ns (+8%) 2,576 B → 2,576 B 0.41× → 0.43×
Indexer (N=10) 1.91 μs → 2.24 μs (+18%) 4,248 B → 4,248 B 0.31× → 0.29×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
Intel Xeon 6975P-C 2.70GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4

Job=InProcess  Toolchain=InProcessEmitToolchain  IterationCount=15  
LaunchCount=1  WarmupCount=10  

Indexer N Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 1 651.1 ns 8.25 ns 7.31 ns 1.00 2.52 KB 1.00
Imposter 1 279.3 ns 2.52 ns 2.24 ns 0.43 1.07 KB 0.43
Moq 1 82,659.1 ns 307.93 ns 272.97 ns 126.97 20.32 KB 8.08
NSubstitute 1 7,706.9 ns 14.36 ns 11.99 ns 11.84 12.78 KB 5.08
FakeItEasy 1 6,358.6 ns 55.70 ns 49.38 ns 9.77 13.27 KB 5.27
Mockolate 10 2,240.5 ns 22.52 ns 21.07 ns 1.00 4.15 KB 1.00
Imposter 10 650.6 ns 2.55 ns 2.13 ns 0.29 2.13 KB 0.51
Moq 10 88,195.7 ns 246.11 ns 205.52 ns 39.37 29.67 KB 7.15
NSubstitute 10 18,735.2 ns 70.57 ns 66.01 ns 8.36 25.58 KB 6.17
FakeItEasy 10 15,208.5 ns 75.07 ns 70.22 ns 6.79 32.47 KB 7.83

CompleteMethodBenchmarks

✅ No changes in memory or relative performance (2 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Method (N=1) 192.0 ns → 171.3 ns (-11%) 1,168 B → 1,168 B 0.69× → 0.62× 1.73× → 1.65×
Method (N=10) 476.1 ns → 483.6 ns (+2%) 1,744 B → 1,744 B 0.59× → 0.55× 2.25× → 2.22×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 9V45 4.25GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4

Job=InProcess  Toolchain=InProcessEmitToolchain  IterationCount=15  
LaunchCount=1  WarmupCount=10  

Method N Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 1 171.3 ns 7.87 ns 7.36 ns 1.00 1168 B 1.00
Imposter 1 106.4 ns 2.47 ns 2.31 ns 0.62 728 B 0.62
TUnitMocks 1 282.3 ns 8.90 ns 8.32 ns 1.65 2088 B 1.79
Moq 1 61,291.1 ns 792.74 ns 741.53 ns 358.53 15079 B 12.91
NSubstitute 1 3,298.0 ns 38.89 ns 34.47 ns 19.29 9320 B 7.98
FakeItEasy 1 3,088.2 ns 62.85 ns 58.79 ns 18.06 8160 B 6.99
Mockolate 10 483.6 ns 4.47 ns 3.96 ns 1.00 1744 B 1.00
Imposter 10 266.7 ns 11.46 ns 10.72 ns 0.55 1088 B 0.62
TUnitMocks 10 1,075.8 ns 33.74 ns 31.56 ns 2.22 3840 B 2.20
Moq 10 61,602.4 ns 635.83 ns 594.76 ns 127.39 19065 B 10.93
NSubstitute 10 5,036.6 ns 56.11 ns 49.74 ns 10.42 12344 B 7.08
FakeItEasy 10 5,282.4 ns 157.30 ns 147.14 ns 10.92 16394 B 9.40

CompletePropertyBenchmarks

Relative performance (how many times as long the other library takes as Mockolate, main → PR)

Benchmark vs Imposter vs TUnitMocks
Property (N=1) 0.42× → 0.29× 🔴 +45% 1.08× → 0.76× 🔴 +42%
All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Property (N=1) 368.9 ns → 539.4 ns (+46%) 1,456 B → 1,456 B 0.42× → 0.29× 🔴 +45% 1.08× → 0.76× 🔴 +42%
Property (N=10) 883.1 ns → 948.5 ns (+7%) 2,224 B → 2,224 B 0.35× → 0.32× 1.62× → 1.56×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 2.68GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3

Job=InProcess  Toolchain=InProcessEmitToolchain  IterationCount=15  
LaunchCount=1  WarmupCount=10  

Property N Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 1 539.4 ns 9.76 ns 9.13 ns 1.00 1456 B 1.00
Imposter 1 156.1 ns 0.97 ns 0.86 ns 0.29 672 B 0.46
TUnitMocks 1 410.7 ns 2.84 ns 2.66 ns 0.76 1672 B 1.15
Moq 1 10,506.9 ns 76.61 ns 71.66 ns 19.48 10569 B 7.26
NSubstitute 1 7,397.2 ns 53.39 ns 47.33 ns 13.72 11664 B 8.01
FakeItEasy 1 7,577.4 ns 70.04 ns 62.09 ns 14.05 11196 B 7.69
Mockolate 10 948.5 ns 3.35 ns 2.79 ns 1.00 2224 B 1.00
Imposter 10 302.2 ns 2.26 ns 2.01 ns 0.32 960 B 0.43
TUnitMocks 10 1,479.7 ns 8.88 ns 8.30 ns 1.56 4024 B 1.81
Moq 10 16,526.5 ns 103.64 ns 96.94 ns 17.42 18505 B 8.32
NSubstitute 10 17,189.1 ns 144.18 ns 134.87 ns 18.12 21529 B 9.68
FakeItEasy 10 18,454.4 ns 100.18 ns 83.66 ns 19.46 30785 B 13.84

CompleteWorkflowBenchmarks

✅ No changes in memory or relative performance (1 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Complete 1.08 μs → 1.18 μs (+10%) 4,064 B → 4,064 B 0.69× → 0.71× 1.90× → 1.98×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 2.64GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3

Job=InProcess  Toolchain=InProcessEmitToolchain  IterationCount=15  
LaunchCount=1  WarmupCount=10  

Complete Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 1,183.6 ns 29.40 ns 27.50 ns 1.00 3.97 KB 1.00
Imposter 837.0 ns 9.29 ns 8.24 ns 0.71 2.9 KB 0.73
TUnitMocks 2,340.3 ns 29.51 ns 27.60 ns 1.98 9.3 KB 2.34
Moq 334,187.5 ns 2,275.56 ns 2,128.56 ns 282.50 35.32 KB 8.90
NSubstitute 22,766.8 ns 201.61 ns 178.72 ns 19.25 35.32 KB 8.90
FakeItEasy 19,667.8 ns 144.59 ns 135.25 ns 16.63 27.87 KB 7.02

MockCreationBenchmarks

✅ No changes in memory or relative performance (1 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
CreateMock 18.1 ns → 11.1 ns (-39%) 160 B → 160 B 5.53× → 6.05× 1.66× → 1.70×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 9V45 4.26GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4

Job=InProcess  Toolchain=InProcessEmitToolchain  IterationCount=15  
LaunchCount=1  WarmupCount=10  

CreateMock Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 11.14 ns 0.363 ns 0.340 ns 1.00 160 B 1.00
Imposter 67.43 ns 2.658 ns 2.486 ns 6.06 504 B 3.15
TUnitMocks 18.94 ns 0.713 ns 0.667 ns 1.70 216 B 1.35
Moq 797.93 ns 19.860 ns 18.577 ns 71.69 2088 B 13.05
NSubstitute 1,184.67 ns 26.505 ns 24.793 ns 106.44 5032 B 31.45
FakeItEasy 970.67 ns 19.316 ns 17.123 ns 87.21 2755 B 17.22

github-actions Bot added a commit that referenced this pull request Nov 16, 2026
…ockolate.Migration supersedes (#989) by Valentin Breuß
github-actions Bot added a commit that referenced this pull request Nov 16, 2026
…ockolate.Migration supersedes (#989) by Valentin Breuß
@github-actions

Copy link
Copy Markdown

This is addressed in release v4.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant