Open
Description
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.