CODE-SAURABH/OpenSkills / benchmark
benchmark
VerifiedPerformance benchmarking skill — baseline and compare page load times, Core Web Vitals, bundle sizes, and API response times. Use when the user wants to measure performance before and after a change, catch performance regressions in a PR, establish a performance baseline, or understand what is making their app slow.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.4 KB |
| references/metric-contract.md | markdown | 433 B |
| scripts/compare_metrics.py | script | 1.4 KB |
scripts/compare_metrics.py
View on GitHub#!/usr/bin/env python3
"""Compare two flat JSON metric files. Lower values are considered better."""
import json
import sys
from pathlib import Path
def load_metrics(path: str) -> dict[str, float]:
data = json.loads(Path(path).read_text(encoding="utf-8"))
if not isinstance(data, dict) or not all(isinstance(value, (int, float)) for value in data.values()):
raise ValueError(f"{path} must be a JSON object containing numeric metric values")
return data
def main() -> int:
if len(sys.argv) != 3:
print("Usage: compare_metrics.py <baseline.json> <candidate.json>", file=sys.stderr)
return 2
baseline, candidate = load_metrics(sys.argv[1]), load_metrics(sys.argv[2])
if baseline.keys() != candidate.keys():
print("Metric keys must match exactly", file=sys.stderr)
return 2
print("| Metric | Baseline | Candidate | Change |")
print("|---|---:|---:|---:|")
for name in sorted(baseline):
before, after = baseline[name], candidate[name]
change = "n/a" if before == 0 else f"{((after - before) / before) * 100:+.1f}%"
print(f"| {name} | {before:g} | {after:g} | {change} |")
return 0
if __name__ == "__main__":
try:
raise SystemExit(main())
except (OSError, ValueError, json.JSONDecodeError) as error:
print(f"Error: {error}", file=sys.stderr)
raise SystemExit(2)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |