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

Function benchmarkBaseline

tests/profile/audio_detectors.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19// 3. Ensure volatile prevents optimization
20
21__attribute__((noinline))
22void benchmarkBaseline() {
23 // TODO: Customize this for audio_detectors
24 // Example for a simple function:
25 volatile int result = 0;
26 for (int i = 0; i < PROFILE_ITERATIONS; i++) {
27 // result = audio_detectors(test_input);
28 result += i; // Placeholder - replace with actual call
29 }
30 (void)result; // Prevent optimization
31}
32
33int main(int argc, char *argv[]) {
34 bool do_baseline = true;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected