Skip to content

Performance drops on Visual Studio 2017 #93

@Gabbbou

Description

@Gabbbou

I integrated Effort.EF6 to our solution. Using Resharper to run my tests, all 700 tests ran in 5 minutes. Which is good. Then, I ran the tests using the test runner from Visual Studio 2017 and it took 45 minutes to run all the tests.

After some profiling I discovered that the lines being slow are the ones where we save changes on context.
Adding and saving a small collection of objects with Resharper takes around 10 ms, when on VS test runner is takes 60 ms.

I use EF6 model first. I create a transient connection before each tests:
_dbConnection = Effort.EntityConnectionFactory.CreateTransient("name=MyEntities");
DataContext = new MyEntities(_dbConnection);

I use Visual Studio Enterprise 2017 Version 15.5.2 .NEt Framework Version 4.6.01590

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions