Skip to content

perf(autoresearch): use FL_PRINT instead of esp_rom_printf in on-device benchmarks #2540

Closed

Description

@zackees

Problem

The AutoResearchWave8Expand.h boot benchmark added in PR #2539 prints results via esp_rom_printf. That was chosen as a workaround so output would reach the USB-Serial-JTAG console (= COM25) without requiring the testSimd RPC, which is currently blocked by a UART0-vs-USB-JTAG routing issue (see companion issue + #2536/#2538). It worked, but it's not the right long-term choice:

  • FL_PRINT is much faster than esp_rom_printf. esp_rom_printf is a ROM function not optimized for hot paths and lacks the buffering / log-level filtering / timestamping that the rest of the codebase relies on.
  • Mixes two log mechanisms in one file. The rest of AutoResearch.ino (and FastLED broadly) uses FL_PRINT/FL_ERROR. The benchmark using a different rail is a project-convention divergence that will confuse future maintainers.
  • No log filtering / log level. esp_rom_printf always emits regardless of CONFIG_LOG_DEFAULT_LEVEL. Noisier logs, no way to suppress at runtime.

Proposal

  1. Switch every benchmark output in the AutoResearch example (and any future on-device benchmark) to FL_PRINT.
  2. Coupled fix: once the routing block is resolved (see the testSimd RPC issue) FL_PRINT reliably reaches the host capture tool, so the esp_rom_printf workaround becomes unnecessary.

Touchpoints

Why

Mentioned by @zackees during PR #2539 review: "we should use FL_PRINT everywhere because it's much much faster."

Refs #2526, #2539.

Activity

  1. zackees commented on Jun 5, 2026

    @zackees
    MemberAuthor

    Verified resolved on master: grep -rn esp_rom_printf examples/AutoResearch/ returns 0 matches. The conversion was done in #2751 (chore(esp32): eliminate runtime esp_rom_printf call sites, merged). Closing as no longer reproducible.

  2. moved this from Triage to Done in FastLED Trackeron Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions