One config line cuts OpenAI Codex CLI response time by nearly 900ms per turn

A developer benchmarking OpenAI's Codex CLI discovered that a telemetry setting was consuming roughly one second per interaction turn. By disabling the OpenTelemetry metrics exporter via a single line in the config file, users can recover that latency without modifying any source code. Further gains came from switching to a persistent process architecture, where one long-lived codex app-server handles multiple turns via JSON-RPC instead of spawning a fresh process each time. Testing showed total time for ten turns dropped from 12.5 seconds to 1.6 seconds with the persistent design, with the improvement holding equally under Node 22 and Bun runtimes. The developer also ported the JavaScript toolchain layer to Bun, yielding faster test startup and install times, and published benchmarks and reproducible demo code on GitHub.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in