MCPcopy Create free account
hub / github.com/FastLED/FastLED / benchSignal

Function benchSignal

tests/profile/fft_cq_compare.cpp:250–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static 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
263int runBenchmark(bool jsonOutput) {
264 const int SAMPLES = 512;

Callers 1

runBenchmarkFunction · 0.85

Calls 3

printfFunction · 0.85
benchModeFunction · 0.85
nsPerCallMethod · 0.45

Tested by

no test coverage detected