| 248 | } |
| 249 | |
| 250 | static void benchSignal(const char *signalName, |
| 251 | fl::span<const fl::i16> signal, int bands, |
| 252 | float fmin, float fmax, int sampleRate, |
| 253 | int iterations) { |
| 254 | fl::printf(" %-8s", signalName); |
| 255 | for (int m = 0; m < NUM_MODES; m++) { |
| 256 | BenchResult r = benchMode(MODES[m].mode, MODES[m].label, signal, |
| 257 | bands, fmin, fmax, sampleRate, iterations); |
| 258 | fl::printf(" %8.1f", r.nsPerCall() / 1000.0); |
| 259 | } |
| 260 | fl::printf("\n"); |
| 261 | } |
| 262 | |
| 263 | int runBenchmark(bool jsonOutput) { |
| 264 | const int SAMPLES = 512; |
no test coverage detected