Quantifier - Performance Benchmarking & KPIs
Overview
Quantifier establishes and tracks performance benchmarks for PromptForge AI. Without benchmarks, you can't tell if a prompt is good, bad, or improving. Quantifier creates the measurement standards that make prompt quality objective and comparable.
When to Use
- When establishing baseline performance for a new prompt
- When creating standardized evaluation datasets for prompt testing
- When defining KPIs for prompt engineering teams or projects
- When comparing prompt performance across time, models, or teams
- When building benchmark reports for stakeholders
- Don't use when: Analyzing patterns in data (use analyzer-promptforge-prompt-analytics)
Core Procedures
Step 1: Define Benchmark Scope
- What are we benchmarking? (specific prompt, prompt category, entire system)
- What dimensions matter? (quality, speed, cost, reliability, user satisfaction)
- What is the comparison baseline? (previous version, industry standard, competitor)
- What is the target? (what performance level are we aiming for)
Step 2: Create Evaluation Dataset
Build a representative test set:
- Size: Minimum 50 inputs for statistical reliability
- Diversity: Cover all input types, edge cases, and common scenarios
- Difficulty: Mix of easy, medium, and hard inputs
- Gold Standard: Each input has a known correct output or evaluation criteria
- Versioned: Dataset is versioned and changes are tracked
Step 3: Run Benchmark
Execute the prompt against the evaluation dataset:
- Run prompt on each input (automated where possible)
- Score each output against gold standard
- Calculate aggregate metrics (mean, median, std dev, percentiles)
- Record resource usage (tokens, cost, latency)
- Document any failures or anomalies
Step 4: Compare Against Targets
BENCHMARK REPORT
================
Prompt: [name and version]
Date: [when benchmark was run]
Dataset: [name and version]
Metrics:
Quality Score: [X/100] (Target: [Y/100]) [PASS/FAIL]
Latency (p50): [X ms] (Target: [Y ms]) [PASS/FAIL]
Cost per Call: [$X] (Target: [$Y]) [PASS/FAIL]
Reliability: [X%] (Target: [Y%]) [PASS/FAIL]
Overall: [PASS/FAIL]
Comparison to Previous: [improved/same/regressed by X%]
Step 5: Track Benchmark Trends
- Run benchmarks on a regular schedule (weekly, monthly, per release)
- Track metric trends over time
- Alert when metrics drop below targets
- Celebrate when metrics exceed targets
Success Metrics
- Benchmark coverage: 100% of production prompts have established benchmarks
- Benchmark frequency: All benchmarks run at least monthly
- Target achievement rate: >=90% of prompts meet their quality targets
- Trend visibility: All metrics have visible trend charts with 3+ months of data
Error Handling
- Error: Benchmark results are inconsistent (high variance)
Response: Increase dataset size, check for input quality issues, review scoring criteria for consistency
- Error: Benchmark dataset becomes outdated (no longer representative)
Response: Update dataset with new input types, re-run benchmark, note the dataset change
- Error: Prompt fails benchmark (below target)
Response: Do not deploy to production, identify root cause, fix and re-benchmark
Cross-Team Integration
Related Skills: analyzer-promptforge-prompt-analytics, tuner-promptforge-ab-testing, clarity-promptforge-performance-optimization, testing-strategy
Used By: Analyzer, Tuner, Clarity, Sage, ALL agents who need to measure prompt performance
1---2name: quantifier-promptforge-benchmarking3description: >4 Use when establishing performance benchmarks, measuring prompt KPIs, creating5 standardized evaluation datasets, and tracking prompt performance against targets.6 This skill provides benchmarking frameworks for consistent prompt measurement.7metadata:8 source: https://skillmd.com/skills/construct-ai-primary/quantifier-promptforge-benchmarking9---1011# Quantifier - Performance Benchmarking & KPIs1213## Overview14Quantifier establishes and tracks performance benchmarks for PromptForge AI. Without benchmarks, you can't tell if a prompt is good, bad, or improving. Quantifier creates the measurement standards that make prompt quality objective and comparable.1516## When to Use17- When establishing baseline performance for a new prompt18- When creating standardized evaluation datasets for prompt testing19- When defining KPIs for prompt engineering teams or projects20- When comparing prompt performance across time, models, or teams21- When building benchmark reports for stakeholders22- **Don't use when:** Analyzing patterns in data (use analyzer-promptforge-prompt-analytics)2324## Core Procedures2526### Step 1: Define Benchmark Scope27- What are we benchmarking? (specific prompt, prompt category, entire system)28- What dimensions matter? (quality, speed, cost, reliability, user satisfaction)29- What is the comparison baseline? (previous version, industry standard, competitor)30- What is the target? (what performance level are we aiming for)3132### Step 2: Create Evaluation Dataset33Build a representative test set:34- **Size:** Minimum 50 inputs for statistical reliability35- **Diversity:** Cover all input types, edge cases, and common scenarios36- **Difficulty:** Mix of easy, medium, and hard inputs37- **Gold Standard:** Each input has a known correct output or evaluation criteria38- **Versioned:** Dataset is versioned and changes are tracked3940### Step 3: Run Benchmark41Execute the prompt against the evaluation dataset:421. Run prompt on each input (automated where possible)432. Score each output against gold standard443. Calculate aggregate metrics (mean, median, std dev, percentiles)454. Record resource usage (tokens, cost, latency)465. Document any failures or anomalies4748### Step 4: Compare Against Targets49```50BENCHMARK REPORT51================52Prompt: [name and version]53Date: [when benchmark was run]54Dataset: [name and version]55Metrics:56 Quality Score: [X/100] (Target: [Y/100]) [PASS/FAIL]57 Latency (p50): [X ms] (Target: [Y ms]) [PASS/FAIL]58 Cost per Call: [$X] (Target: [$Y]) [PASS/FAIL]59 Reliability: [X%] (Target: [Y%]) [PASS/FAIL]60Overall: [PASS/FAIL]61Comparison to Previous: [improved/same/regressed by X%]62```6364### Step 5: Track Benchmark Trends65- Run benchmarks on a regular schedule (weekly, monthly, per release)66- Track metric trends over time67- Alert when metrics drop below targets68- Celebrate when metrics exceed targets6970## Success Metrics71- Benchmark coverage: 100% of production prompts have established benchmarks72- Benchmark frequency: All benchmarks run at least monthly73- Target achievement rate: >=90% of prompts meet their quality targets74- Trend visibility: All metrics have visible trend charts with 3+ months of data7576## Error Handling77- **Error:** Benchmark results are inconsistent (high variance)78 **Response:** Increase dataset size, check for input quality issues, review scoring criteria for consistency79- **Error:** Benchmark dataset becomes outdated (no longer representative)80 **Response:** Update dataset with new input types, re-run benchmark, note the dataset change81- **Error:** Prompt fails benchmark (below target)82 **Response:** Do not deploy to production, identify root cause, fix and re-benchmark8384## Cross-Team Integration85**Related Skills:** analyzer-promptforge-prompt-analytics, tuner-promptforge-ab-testing, clarity-promptforge-performance-optimization, testing-strategy86**Used By:** Analyzer, Tuner, Clarity, Sage, ALL agents who need to measure prompt performance