Performance compared to MEF 2
Open
@AArnott is already working on this.
Since Aug 21, 2026.
- Dominant language
- C#
- Stars
- 464
- Forks
- 93
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 13
Description
There is a comparison library for several IoC implementations. Comparing VS MEF to MEF 2 shows that VS MEF is only better in startup performance, but significantly slower in other benchmarks:
https://github.com/danielpalme/IocPerformance
Compared versions (this is the nuget package version - the screenshot displays the assembly version):
- VS MEF: 16.1.8
- MEF2: 1.2.0
Do you think it is still justifiable in some cases to use VS MEF over MEF 2? Or could be there a conceptual problem why these benchmark values are worse? Do you maybe have other benchmarks that shows a different picture?


Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.