microsoft / testfx

MSTest framework and adapter
MIT License
749 stars 255 forks source link

Single file application slow on osx-x64 runtime #3809

Open thomhurst opened 1 month ago

thomhurst commented 1 month ago

I originally thought this was a dotnet runtime issue but a single file executable basic console app is quicker on all runtimes than invoking dotnet run.

However once you add the Microsoft.Testing.Platform then a osx-x64 single file executable takes a lot longer.

Benchmarks are here: https://github.com/thomhurst/SlowOsx64SingleFile/actions/runs/10811251824

Basic reproduction is available in that repository too.

nohwnd commented 1 month ago

Do you know if this reproes only on M1 or also on Intel chip on MacOS?

thomhurst commented 1 month ago

Do you know if this reproes only on M1 or also on Intel chip on MacOS?

Don't know off the top of my head. Whatever the GitHub actions macos-latest uses

nohwnd commented 1 month ago

the benchmark you shared run on M1. Thanks.