Skip to content

~4x unit test performance regression with SDK version 2.6.1 #184

@z2oh

Description

@z2oh

We recently updated the SDK from version 2.4.0 to 2.6.3 and noticed a large performance regression for our unit test runs in CI (~8.5m on average to ~33m). I bisected SDK versions and found that 2.6.1 was when the slow performance started.

Nothing really stuck out to me as an obvious explanation in the changeset: 2.6.0...2.6.1 , though I'm not much of a Swift programmer.

We're running our unit tests serially (as we have some concurrency issues with state bleeding between tests), with this set of DD SDK envvars:

DD_TEST_RUNNER: 1
DD_ENV: ci
DD_DISABLE_SOURCE_LOCATION: 1
DD_CIVISIBILITY_ITR_ENABLED: 0
DD_CIVISIBILITY_CODE_COVERAGE_ENABLED: 0
DD_DISABLE_NTPCLOCK: 1

The regression shows up locally as well (even more significantly in my local testing, a 6x-10x slowdown). Surprisingly, this is without DD_TEST_RUNNER set.

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