| 19 | // 3. Ensure volatile prevents optimization |
| 20 | |
| 21 | __attribute__((noinline)) |
| 22 | void 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 | |
| 33 | int main(int argc, char *argv[]) { |
| 34 | bool do_baseline = true; |