eurorack-blocks icon indicating copy to clipboard operation
eurorack-blocks copied to clipboard

Benchmark cmath functions compared to their "fast math" equivalent

Open ohmtech-rdi opened this issue 3 years ago • 0 comments

Our future integrations use "fast math" to replace parts of the standard library with a "faster" equivalent.

Sometimes for example, std::sin is replaced with the CMSIS equivalent, but the implementation doesn't seem to be faster than the one in glibc, unless we are looking at the wrong implementation.

To make sure those are relevant, benchmark them:

  • The time they take compared to the standard library one
  • The ULP they have compared to the standard library one

ohmtech-rdi avatar Feb 08 '22 12:02 ohmtech-rdi