microsoft / microsoft/vs-mef

Performance compared to MEF 2

Open
#152 12 comments 0 reactions 1 assignee View on GitHub

@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?

image

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.