{"by":"mrqjr","descendants":9,"id":44413921,"kids":[44416480,44415167,44420215],"score":55,"text":"I recently built a small open-source tool to benchmark different LLM API endpoints — including OpenAI, Claude, and self-hosted models (like llama.cpp).<p>It runs a configurable number of test requests and reports two key metrics:\n •  First-token latency (ms): How long it takes for the first token to appear\n •  Output speed (tokens&#x2F;sec): Overall output fluency<p>Demo: <a href=\"https:&#x2F;&#x2F;llmapitest.com&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;llmapitest.com&#x2F;</a>\nCode: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;qjr87&#x2F;llm-api-test\">https:&#x2F;&#x2F;github.com&#x2F;qjr87&#x2F;llm-api-test</a><p>The goal is to provide a simple, visual, and reproducible way to evaluate performance across different LLM providers, including the growing number of third-party “proxy” or “cheap LLM API” services.<p>It supports:\n • OpenAI-compatible APIs (official + proxies)\n • Claude (via Anthropic)\n • Local endpoints (custom&#x2F;self-hosted)<p>You can also self-host it with docker-compose.\nConfig is clean, adding a new provider only requires a simple plugin-style addition.<p>Would love feedback, PRs, or even test reports from APIs you’re using. Especially interested in how some lesser-known services compare.","time":1751211237,"title":"Show HN: A tool to benchmark LLM APIs (OpenAI, Claude, local/self-hosted)","type":"story","url":"https://llmapitest.com/"}