How to Benchmark LLM Apps by Cloning a Production Chat Interface: A Six-Model Evaluation Method
This article presents a reproducible method for evaluating the engineering capability of LLM plus execution-harness combinations. Given a live conversational web app and its public API documentation, each combination must produce three deliverables under identical constraints: a product feature document with a structure diagram, a high-fidelity replica page, and an improved version of the page. The article covers the evaluation design, a two-round prompting scheme that withholds credentials until after architecture design, the behavioral split between minimal and deep verification, quantifiable acceptance criteria for functional fidelity, visual fidelity, and code quality, a common defect checklist, and recommendations for turning the results into regression tests and continuously tracked engineering metrics.
1. Background and Problem Definition
A pattern worth noting has recently emerged in the industry: a model service provider opened up its interface capabilities—including deep reasoning retrieval, file input, speech synthesis, and speech recognition—while publicly stating that developers could use these capabilities to build a fully functional conversational application on their own. The provider subsequently adjusted limits on daily conversation counts and maximum input length per request. This combination of “open capabilities plus quota-based operation” puts a question directly in front of developers: when the underlying capabilities are sufficiently standardized, who should own the work of replicating a mature conversational product, and what criteria should be used to judge whether it is done well?
This article does not compare the merits of any specific vendor’s product. Instead, it abstracts the situation into a reproducible engineering evaluation problem: given a live conversational web application and a set of public API documentation, have different “model + execution harness” combinations produce three categories of deliverables under unified constraints, and use those deliverables to assess engineering capability. The practical value of this kind of evaluation for technology selection is that it examines five capabilities at once—information gathering, structured output, interface reproduction, code organization, and self-verification—making it closer to real development work than a pure code-generation benchmark.
2. Evaluation Design: One Task, Three Deliverable Tracks
The core principle is “unified task, unified constraints, unified acceptance,” with variable control applied only to the systems under test.
The three deliverable tracks are defined as follows:
- Product feature document and structure diagram: Document which functional modules the target application has, the hierarchy and navigation relationships between modules, and provide a product feature structure diagram. This track assesses information extraction and structured expression.
- High-fidelity replica page: Match the original page as closely as possible on both functional and visual dimensions, including layout grid, control dimensions, interaction feedback, and responsive breakpoints. This track assesses front-end implementation and attention to detail.
- Improved version of the page: Build on an understanding of the original product, add features and optimize interactions based on common industry practices, with web search for reference material allowed. This track assesses product judgment and trade-offs, and it is the key differentiator between “knowing how to copy” and “knowing how to design.”
The task inputs include the URL of the target page and the URL of the API documentation, and a browser tool with an authenticated session may be used to actually browse and operate the page. This matters: a replica built without real browsing mostly stays at the level of imagination. Details such as logged-in states, empty states, error messages, and the conversation history sidebar only surface during real interaction.
3. Two Prompt Rounds and Harness Differences
Prompts are delivered in two rounds. The first round provides only the role, the objective, and the three deliverable requirements, and explicitly instructs the model to ignore existing memory, skills, and external extensions and begin execution directly; the second round supplies the calling credentials. The purpose of this design is to observe whether the model completes sufficient architecture design and page scaffolding during the “no-credential phase,” and whether it performs real integration and verification actions after receiving the credentials.
Testing revealed a clear split in strategy, which falls into two categories:
- Minimal verification: After receiving credentials, the combination performs only the simplest connectivity test, declares completion once a normal response is confirmed, and leaves latent problems in the integration layer of its deliverables.
- Deep verification: After receiving credentials, the combination constructs multi-turn conversations, very long inputs, malformed inputs, concurrent requests, and other scenarios, actively surfaces defects, and goes back to fix the implementation.
It is worth stressing that this difference stems more from the strategy of the “model + execution harness” combination than from the raw capability of a single model. The evaluation procedure must be kept completely consistent, otherwise the conclusions are not comparable. A reproducible evaluation record should include at least the fields in the table below:
| Field | Description |
|---|---|
| Combination ID | Identifier for the model and harness pairing |
| Context strategy | Long-context mode or standard-context mode |
| Round duration | Time taken by each of the two prompt rounds |
| Deliverable completeness | Whether all three deliverables are present and runnable |
| Verification depth | Whether abnormal and boundary scenarios are covered |
| Defect count | Number of issues found and fixed through self-inspection |
4. Evaluation Dimensions and Quantifiable Acceptance Criteria
To keep conclusions from being purely subjective, acceptance should be broken into checkable items.
Functional fidelity can be verified item by item against a module checklist: session creation and switching, streaming message output, Markdown and code highlighting, file upload and parsing, the web search toggle, voice input and playback, share links, the settings panel, and theme switching. Score each item on three levels: fully reproduced, partially reproduced, or missing.
Visual fidelity should be judged by key geometric measurements rather than “looks similar.” Examples include sidebar width, top bar height, the corner radius and padding of the input box, and the bottom-fixed position of the input box on mobile along with safe-area handling. Mobile is often the dividing line: many implementations align only on desktop, and once the viewport narrows, the input box drifts, buttons wrap, and the scroll region conflicts with the on-screen keyboard.
Engineering quality focuses on runnability and maintainability: whether credentials are hardcoded, whether calling logic is coupled with the view layer, whether streaming rendering leaks memory, whether error states have fallbacks, and whether components are reusable.
A schematic API wrapper can illustrate the layering approach:
// Unified wrapper: the view layer does not deal with auth or error details directlyasync function* streamChat(messages, signal) {const resp = await fetch(chatEndpoint, {method: "POST",headers: { "Content-Type": "application/json" },body: JSON.stringify({ messages, stream: true }),signal,});if (!resp.ok) throw new Error(`request failed: ${resp.status}`);const reader = resp.body.getReader();const decoder = new TextDecoder();while (true) {const { value, done } = await reader.read();if (done) break;yield decoder.decode(value, { stream: true });}}
5. Findings and a Common Defect Checklist
Overall, the most stable combinations tend to share three traits: the documentation proactively notes acceptance caveats (for example, that share links must be verified in a browser without a logged-in session), the replica matches the original page closely in mobile detail, and the core feature paths are complete and runnable. The lower-ranked implementations tend to have problems concentrated in the same set of places:
- Only the static appearance is implemented; streaming output and generation interruption are missing.
- File upload lacks type and size validation, and parsing failures produce no message.
- No truncation or summarization strategy is applied in long-context scenarios, which directly triggers quota errors.
- Conversation history is not persisted and is lost on refresh.
- Accessibility and keyboard reachability are missing, so the main flow cannot be completed with the keyboard alone.
6. Implementation Recommendations
To reuse this method in your own project, take three steps: first, fix the task and the acceptance checklist so results are comparable across combinations; second, require “real browsing plus real integration,” delivering credentials only after architecture design; third, turn the defect checklist into regression test cases and add them to continuous integration. When deploying in the cloud, you can use a container platform to host the front-end build artifacts, object storage to serve static assets, and logging and monitoring with alerting to track call-chain behavior, using general-purpose capabilities to convert evaluation results into engineering metrics that can be tracked continuously.
