dotnet / crank

Benchmarking infrastructure for applications
MIT License
975 stars 103 forks source link

Use SetProcessAffinityMask instead of SetProcessDefaultCpuSets #684

Closed sebastienros closed 8 months ago

sebastienros commented 8 months ago

JobObjectWrapper is not necessary anymore, tested locally. We might still benefit from using a SUSPENDED thread once the API is available in the runtime. Environment.ProcessorCount is also returning the correct value, and overriding its value is not necesary anymore.