Skip to main content
Prompts don’t fail in obvious ways — they drift, produce inconsistent outputs, and degrade quietly across different models and edge cases. Netra’s Stress Testing framework makes that invisible unreliability visible, giving you a structured, repeatable way to measure prompt performance across models, runs, and evaluators before every publish.

Prompt Studio

Stress Testing lives inside Prompt Studio. Learn how to build, test, and version prompts.

Why Stress Testing Matters

Without systematic reliability testing, a prompt that works once might fail unpredictably in production. Netra helps you answer critical questions with confidence:

Core Building Blocks

The Stress Testing framework is built on three interconnected pillars:

Models & Runs

Configure which models to test and how many executions to perform. Netra runs your prompt repeatedly against each selected model to surface inconsistencies that single runs miss.
Your currently configured model in Prompt Studio is pre-selected as the first model. Add additional models to compare performance across providers like OpenAI, Anthropic, and Google.

Evaluators

Evaluators score every individual run against your quality and performance criteria. Netra provides 6 evaluator types: Each evaluator supports pass criteria — numerical thresholds (e.g., latency < 2000ms) or boolean conditions (pass/fail) — so you define exactly what “good” means for your use case.

Results & Analysis

After all runs complete, Netra aggregates scores and generates actionable insights:

Step-by-Step Guide

Prerequisites

  • A prompt with at least one message in Prompt Studio
  • All prompt variables filled with representative values
  • At least one model provider configured in your workspace

Run Your First Stress Test

1

Open Stress Test Configuration

In Prompt Studio, ensure your prompt variables are filled with values that represent real usage. Click the Stress Test button next to the Run button in the actions panel.
Screenshot From 2026 07 06 12 03 10
All prompt variables must be filled before starting a stress test. If any variables are empty, the button will trigger a validation error.
2

Select Models (Step 1 of 2)

The configuration modal opens on Step 1: Configure. Your current model is pre-selected. Add more models to compare:
  • Click Add Model to open the model picker
  • Select a provider and model from the dropdown
  • Add up to 5 models total
  • Remove models by clicking the × on each model chip
Screenshot From 2026 07 06 12 06 59
3

Set Runs Per Model

Choose how many times each model should execute the prompt. More runs produce more statistically reliable results.You can also enter a custom value (1–100). The footer shows total executions:
3 models × 50 runs = 150 total executions
Screenshot From 2026 07 06 12 29 32
4

Configure Evaluators (Step 2 of 2)

Click Next to move to Step 2: Evaluators. Select which evaluators to use and configure each one:
  1. Toggle evaluators on/off using the checkbox on each card
  2. Expand a card to configure its settings
  3. Set pass criteria — either a numerical threshold with an operator or a boolean condition (is_true / is_false)
  4. For LLM-as-Judge, select the provider and model that will act as the judge
Screenshot From 2026 07 06 12 30 11
You must select at least one evaluator. The counter at the top shows how many evaluators are currently selected.
5

Start the Stress Test

Click Run at the bottom of the modal. The test starts immediately in the background:
  • A progress banner appears above the action buttons showing real-time status
  • Executions are processed asynchronously — you can continue editing your prompt
  • Status polls automatically every 4 seconds
Screenshot From 2026 07 06 12 31 34
Also, you can click View Results button to open Results modal and can stop any running Stress Test
Screenshot From 2026 07 06 12 38 27
6

Monitor Progress

The banner updates in real-time:
  • Running — Shows Running · X/Y runs with an animated indicator
  • Multiple tests — Shows N tests running · X/Y runs when concurrent tests are active
  • Completion — A success toast appears with the overall score and a link to results
Screenshot From 2026 07 06 12 38 38
You can also access past and running tests anytime via the View past stress tests link.
7

Track History & Reliability Trends

Access Run History via the banner link or “View past stress tests.” The history modal  shows:
  • A table of all past stress tests with version/draft, score, duration, status, and who ran it
  • A Reliability Chart (appears after 2+ completed tests) showing average score trends over time
  • Filter by version to compare performance across prompt iterations
  • Stop any running test directly from the history
Screenshot From 2026 07 06 12 41 54
8

Review Results — Overview Tab

On clicking each row in Run History table, a new modal with two tabs will open. The Overview tab shows:AI Analysis — A generated summary with a health badge:
  • 🟢 Healthy — Prompt is reliable and production-ready
  • 🟡 Needs Optimization — Some issues detected; review recommendations
  • 🔴 Critical Issues — Significant reliability problems; do not publish
Per-Model Metrics — A grid showing each model’s average latency, total cost, total tokens, and average evaluator score.Pass Rate Breakdown — A stacked bar per model showing the distribution of all-pass, all-fail, error, and partial outcomes.Radar Chart — A visual comparison of all models across every evaluator axis.Evaluator Breakdown Table — Tabular view of exact scores per model per evaluator.
Screenshot From 2026 07 06 12 42 26
Screenshot From 2026 07 06 12 43 01
9

Review Results — Logs Tab

Switch to the Logs tab for granular inspection of every individual run:
  • Filter by model — Focus on a specific model’s runs
  • Filter by eval status — Show only Passed, Partial, Failed, or Error runs
  • Expand any row — See the full model output and per-evaluator scores with pass/fail reasons
Screenshot From 2026 07 06 12 43 49

Evaluators in Detail

LLM-as-Judge

Uses a separate LLM to evaluate the quality of each run’s output. The judge model reads the prompt, the output, and (optionally) a reference answer, then produces a score.

Latency

Measures response time in milliseconds and checks against your expected threshold.

Cost

Measures per-run execution cost and checks against your budget threshold.

Token Count

Measures total tokens consumed (prompt + completion) and checks against your limit.

JSON Validation

Deep-compares the model output against an expected JSON structure to validate structured outputs.

Regex Match

Tests the model output against a regular expression pattern.

Understanding Pass Criteria

Every evaluator uses pass criteria to determine if a run passes or fails:

Numerical Pass Criteria

For evaluators that produce a numeric score (like LLM-as-Judge):

Boolean Pass Criteria

For evaluators that produce a true/false result (latency, cost, token, JSON, regex):

Test Statuses


Use Cases

Pre-Publish Validation

Ensure your prompt meets quality bars before releasing to production:
  1. Finish editing your prompt in Prompt Studio
  2. Run a stress test with 50+ runs across your target production model
  3. Configure evaluators matching your quality criteria (e.g., LLM-as-Judge >= 0.8, latency < 3000ms)
  4. Review the AI health analysis — check if status is “Healthy”

Model Selection & Comparison

Choose the best model for your use case with data, not guesses:
  1. Add all candidate models (up to 5) to a single stress test
  2. Set runs to 50+ for statistically meaningful results
  3. Compare the radar chart and per-model scores across evaluators
  4. Select the model with the best balance of quality, speed, and cost

Regression Detection

Catch quality degradation when iterating on prompts:
  1. Run a stress test on your current published version as a baseline
  2. Create a draft with your proposed changes
  3. Run the same stress test configuration on the draft
  4. Compare scores in Run History — the reliability chart shows trends across versions

Best Practices


FAQ

Yes. Stress tests work on both published versions and drafts. This lets you validate changes before publishing a new version.
Up to 5 models in a single stress test. Each model runs independently with its own parameter configuration (temperature, top P, max tokens, etc.).
You can run up to 100 executions per model. The UI provides quick presets (1, 25, 50, 100), but you can enter any custom value within the range.
Yes. Open the Run History modal and click the Stop button on the running test.
After all runs finish, an AI model analyzes the aggregated scores, pass rates, and per-model performance. It produces a natural-language summary explaining what went well and what needs attention, along with a health rating (Healthy, Needs Optimization, or Critical Issues).
Yes. The progress banner tracks multiple concurrent tests and shows aggregated progress. Each test runs independently in the background.
The reliability trend chart appears in Run History after you have 2 or more completed stress tests on the same prompt. It shows average score progression over time.
Each run’s score is the average of all evaluator scores for that run (boolean results become 1 for pass, 0 for fail). The overall stress test score is the average across all runs and all models.
If a model call fails, that run is marked as failed. The system retries up to 3 times with exponential backoff. If all retries fail, the run is recorded as failed and counted in the failure metrics. Other runs continue unaffected.

  • Prompt Studio — Build, test, and version prompts in a centralized workspace
  • Evaluation Overview — Broader evaluation framework for datasets and test runs
  • Simulation Overview — Test AI agents with multi-turn conversations
  • Traces — Debug individual executions with full trace visibility
Last modified on July 6, 2026