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

Function main

tests/profile/sincos32_simd.cpp:77–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77int 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}

Callers

nothing calls this directly

Calls 4

strcmpFunction · 0.85
printfFunction · 0.85
benchmark_sincos32_simdFunction · 0.70
microsFunction · 0.50

Tested by

no test coverage detected