Browse Source

FFT: fix benchmark which was misleading (poor x86 Jit NaN performance)

spatial
Christoph Ruegg 9 years ago
parent
commit
9d7da0a331
  1. 6
      src/Benchmark/Transforms/FFT.cs

6
src/Benchmark/Transforms/FFT.cs

@ -42,7 +42,7 @@ namespace Benchmark.Transforms
Complex[] _data; Complex[] _data;
[GlobalSetup] [GlobalSetup]
public void Setup() public void GlobalSetup()
{ {
Providers.ForceProvider(Provider); Providers.ForceProvider(Provider);
var realSinusoidal = Generate.Sinusoidal(N, 32, -2.0, 2.0); var realSinusoidal = Generate.Sinusoidal(N, 32, -2.0, 2.0);
@ -53,8 +53,8 @@ namespace Benchmark.Transforms
[Benchmark(OperationsPerInvoke = 2)] [Benchmark(OperationsPerInvoke = 2)]
public void Transform() public void Transform()
{ {
Fourier.Forward(_data, FourierOptions.NoScaling); Fourier.Forward(_data, FourierOptions.Default);
Fourier.Inverse(_data, FourierOptions.NoScaling); Fourier.Inverse(_data, FourierOptions.Default);
} }
} }
} }

Loading…
Cancel
Save