compare-profiles
Compare two parsing profiles to measure optimization impact, validate grammar changes, and get performance verdicts with percentage changes.
Instructions
Compare two parsing profiles to measure optimization impact.
When to use: Validating grammar optimizations, A/B testing changes, regression testing.
Parameters:
profile1: First profile result (from profile-parsing)
profile2: Second profile result (from profile-parsing)
Returns:
Comparison metrics with % change
Performance verdict (improved, degraded, unchanged)
Key differences highlighted
Recommendations based on changes
Example: profile1: { parseTimeMs: 150, ambiguityCount: 5, ... } profile2: { parseTimeMs: 80, ambiguityCount: 0, ... }
Output:
Metric | Before | After | Change |
Parse Time | 150ms | 80ms | -46.7% ✅ |
Ambiguities | 5 | 0 | -100% ✅ |
Verdict: ✅ Improved - Parse time reduced by 46.7%
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile1 | Yes | First profile result (baseline) | |
| profile2 | Yes | Second profile result (optimized) |