-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance regression come again on dotnet 9 #111016
Comments
Tagging subscribers to this area: @dotnet/area-system-numerics |
I do measure a regression, but nowhere near what you're seeing (on Intel or AMD) This is due to an MSVC correctness bug that exists in native: https://developercommunity.visualstudio.com/t/MSVCs-sincos-implementation-is-incorrec/10582378 and thus .NET 9 was fixed to no longer use the The exact performance is a bit dependent on the input, but it should be pessimizing to approximately the same performance as if you invoked Intel
AMD
|
I notice that your platform have avx512 support, but my laptop only got avx2. Or it might be a exclusive bug of 12/13/14th gen core CPU,lol As you say, I think I should call sin & cos seperately in the future, to aviod strange behaviour. thanks |
Assigned to @PranavSenthilnathan for triage. |
Description
#95954
With temporary resolution in this issue . I add this segment to fix dotnet 8 performance regression. It makes performance back to 90% of dotnet 7
https://github.com/kingsznhone/VSOP2013.NET/blob/8a9e03fd734d9c29de788877724e32022b042d21/VSOP2013.NET/Calculator.cs#L151
Few days ago. I try dotnet 9 to run perf test. Same situation occor as before.
Ethier I apply that fix or not. Performance still very bad.
This line cause performance heavily drop as before.
(su, cu) = Math.SinCos(u);
Data
``
BenchmarkDotNet v0.13.11, Windows 11 (10.0.22631.4602/23H2/2023Update/SunValley3)
12th Gen Intel Core i9-12950HX, 1 CPU, 16 logical and 16 physical cores
.NET SDK 9.0.101
[Host] : .NET 8.0.11 (8.0.1124.51707), X64 RyuJIT AVX2 [AttachedDebugger]
.NET 8.0 : .NET 8.0.11 (8.0.1124.51707), X64 RyuJIT AVX2
.NET 9.0 : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX2
The text was updated successfully, but these errors were encountered: