Skip to content

PSSA should be crossgen'd #991

Open
Open
@SteveL-MSFT

Description

@SteveL-MSFT

Doing some perf tests and there's a large impact to the first time PSSA.dll is loaded due to JIT.
However, after the initial JIT, execution time is MUCH faster. But for cases where PSSA is invoked just once, it's a huge cost without savings as the JIT is only in memory until the process goes away.

These times are for using PSSA recursively against all scripts in PowerShell repo:

PowerShell dotnet cold start (JIT) warm start
WinPS 5.1 .Net 4.7.1 111s 18.6s
PSCore6 .NetCore2.1 105s 16.4s
PSCore6 .NetCore2.1+Tiered 90s 16.8s

Tiered is a new opt-in compilation feature of dotnetcore2.1 that balances startup and runtime optimizations.

My conclusion is that we should crossgen (coreclr) and ngen (fullclr) assemblies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions