Skip to content

Slower performance after upgrading from 4.2.1510 to 4.14.7 #1083

@vruss

Description

@vruss

I'm trying to troubleshoot why the test duration has increased by several seconds on a lot of tests (which amounts to double-digit minutes total).

Synthetic tests show that the newer Moq version is a lot faster with both new Mock and Mock.Of. But real testcases are significantly slower.

I think the issue is somewhat related to this Castle issue. As we've also updated Castle from 4.3.3 to 4.4.1, I'm not sure if the issue is with Castle or Moq.

Are there any known performance issues where mocked interfaces (and classes) with A LOT of properties and methods with multiple layers of inheritance with even more properties have become slower in newer updates?

I'm sorry I can't provide a repro as it's production code and I've yet to successfully reproduce it myself in a contained unit.

Metadata

Metadata

Assignees

No one assigned

    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