Closed Woyten closed 3 years ago
--out-buf 2048
)f64
: 200 (= 800 Sin
stages)f32
: 300 (= 1200 Sin
stages)f64
: 510f32
: 480f64
: 800 (= 1600 Sawtooth
stages)f32
: 790 (= 1580 Sawtooth
stagess)f64
: 900f32
: 880f64
offers a slightly better performance than f32
. This result is not completely unexpected since 64-bit CPUs are designed to consume f64
s in a single instruction. The fact that an f64
consumes twice as much memory as an f32
does not seem to play a significant role.{float}::sin
, f32
clearly is faster than f64
. The obvious explanation is that since f64
has a higher precision than f32
more iteration steps are required until a value is fully converged.f64
everywhere.f64
buffer from and to an f32
audio buffer is expected to be negligible.f64::sin
without sacrificing numeric precision.Consistent usage of f64
implemented in 206b416209647e52c6ff402d63a12656024bd88f
New benchmark results:
It is not guaranteed that this will actually improve the performance.