Prompt Studio
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.Evaluators
Evaluators score every individual run against your quality and performance criteria. Netra provides 6 evaluator types: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
Open Stress Test Configuration

Select Models (Step 1 of 2)
- 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

Set Runs Per Model
3 models × 50 runs = 150 total executions

Configure Evaluators (Step 2 of 2)
- Toggle evaluators on/off using the checkbox on each card
- Expand a card to configure its settings
- Set pass criteria — either a numerical threshold with an operator or a boolean condition (is_true / is_false)
- For LLM-as-Judge, select the provider and model that will act as the judge

Start the Stress Test
- 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


Monitor Progress
- Running — Shows
Running · X/Y runswith an animated indicator - Multiple tests — Shows
N tests running · X/Y runswhen concurrent tests are active - Completion — A success toast appears with the overall score and a link to results

Track History & Reliability Trends
- 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

Review Results — Overview Tab
- 🟢 Healthy — Prompt is reliable and production-ready
- 🟡 Needs Optimization — Some issues detected; review recommendations
- 🔴 Critical Issues — Significant reliability problems; do not publish


Review Results — Logs Tab
- 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

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:- Finish editing your prompt in Prompt Studio
- Run a stress test with 50+ runs across your target production model
- Configure evaluators matching your quality criteria (e.g., LLM-as-Judge
>= 0.8, latency< 3000ms) - 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:- Add all candidate models (up to 5) to a single stress test
- Set runs to 50+ for statistically meaningful results
- Compare the radar chart and per-model scores across evaluators
- Select the model with the best balance of quality, speed, and cost
Regression Detection
Catch quality degradation when iterating on prompts:- Run a stress test on your current published version as a baseline
- Create a draft with your proposed changes
- Run the same stress test configuration on the draft
- Compare scores in Run History — the reliability chart shows trends across versions
Best Practices
FAQ
Can I run a stress test on a draft?
Can I run a stress test on a draft?
How many models can I test at once?
How many models can I test at once?
What is the maximum number of runs per model?
What is the maximum number of runs per model?
Can I stop a running stress test?
Can I stop a running stress test?
What does the AI Analysis measure?
What does the AI Analysis measure?
Can I run multiple stress tests simultaneously?
Can I run multiple stress tests simultaneously?
When does the reliability chart appear?
When does the reliability chart appear?
How is the overall score calculated?
How is the overall score calculated?
What happens if a run fails during execution?
What happens if a run fails during execution?
Related
- 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
