| 75 | } |
| 76 | |
| 77 | int main(int argc, char *argv[]) { |
| 78 | bool json_output = (argc > 1 && fl::strcmp(argv[1], "baseline") == 0); |
| 79 | |
| 80 | // Warmup |
| 81 | benchmark_sincos32_simd(WARMUP_CALLS); |
| 82 | |
| 83 | // Profile |
| 84 | u32 t0 = ::micros(); |
| 85 | benchmark_sincos32_simd(PROFILE_CALLS); |
| 86 | u32 t1 = ::micros(); |
| 87 | |
| 88 | u32 elapsed_us = t1 - t0; |
| 89 | |
| 90 | if (json_output) { |
| 91 | ProfileResultBuilder::print_result("sincos32_simd", "sincos32_simd", |
| 92 | PROFILE_CALLS, elapsed_us); |
| 93 | } else { |
| 94 | printf("sincos32_simd: %d calls in %lu us (%.1f ns/call, %.1f Mcalls/sec)\n", |
| 95 | PROFILE_CALLS, static_cast<unsigned long>(elapsed_us), |
| 96 | static_cast<double>(elapsed_us * 1000) / PROFILE_CALLS, |
| 97 | PROFILE_CALLS / static_cast<double>(elapsed_us)); |
| 98 | } |
| 99 | |
| 100 | return 0; |
| 101 | } |
nothing calls this directly
no test coverage detected