Skip to content

Single file start time regression #116318

Open
@sebastienros

Description

@sebastienros

With SDK builds taken between 4/8 and 4/10 we noticed a regression in startup time for applications published as single files.

Environment:

  • This was reproduced only on Windows (Linux is not affected) and can still be consistently. Same machine, Windows Defender disabled on the folder starting the app. Same parent folder between runs, though any AV should happen the same way on both builds.
  • Not specific to a single app
  • Here showing ASP.NET application without DI or middleware (Platform benchmark)

SDK versions:
10.0.100-preview.4.25207.27
10.0.100-preview.4.25209.44

Image

black: single file
blue: trimmed
yellow: aot
pink: self-contained

I have the executables built for the two SDKs. Contact me on Teams if you want them.

Crank command lines for reference:

crank --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/platform.benchmarks.yml --scenario json --profile aspnet-citrine-win --application.buildArguments "/p:PublishReadyToRun=true /p:PublishSingleFile=true" --application.framework net10.0 --application.options.collectCounters true --load.options.reuseBuild true --application.aspNetCoreVersion 10.0.0-preview.4.25181.4 --application.runtimeVersion 10.0.0-preview.4.25174.9 --application.sdkVersion 10.0.100-preview.4.25207.27 --profile short --application.options.fetch true

crank --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/platform.benchmarks.yml --scenario json --profile aspnet-citrine-win --application.buildArguments "/p:PublishReadyToRun=true /p:PublishSingleFile=true" --application.framework net10.0 --application.options.collectCounters true --load.options.reuseBuild true --application.aspNetCoreVersion 10.0.0-preview.4.25208.1 --application.runtimeVersion 10.0.0-preview.4.25209.9 --application.sdkVersion 10.0.100-preview.4.25209.44 --profile short --application.options.fetch true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions