Description
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
| Method | Job | Runtime | Mean | Error | StdDev | Ratio | Allocated | Alloc Ratio |
|-------- |--------- |--------- |------------:|----------:|----------:|------:|----------:|------------:|
| Compute | .NET 8.0 | .NET 8.0 | 739.2 μs | 8.05 μs | 7.14 μs | 1.00 | 2.91 KB | 1.00 |
| | | | | | | | | |
| Compute | .NET 9.0 | .NET 9.0 | 29,018.1 μs | 183.88 μs | 172.00 μs | 1.00 | 2.92 KB | 1.00 |