benchmark

Measure Laravel performance baselines and detect regressions via standardized tests.

Updated Jan 6, 2023
One-click install
npx skills add https://github.com/pekral/phpstan-rules --skill benchmark-pekral
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: benchmark
Source: https://github.com/pekral/phpstan-rules/tree/main/.claude/skills/benchmark
Command: npx skills add https://github.com/pekral/phpstan-rules --skill benchmark-pekral

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates guesswork in performance tuning by providing a standardized, repeatable framework for measuring Laravel application speed and identifying regressions before they reach production.

Core Features & Use Cases

  • Multi-Mode Analysis: Evaluate performance across page load (Core Web Vitals), API latency, build/test velocity, and database query execution.
  • Regression Detection: Compare before-and-after metrics using git-tracked baselines to prove the impact of code changes.
  • Use Case: When refactoring a slow API endpoint, use this skill to capture p95 latency and query execution counts before and after your changes to verify a measurable improvement.

Quick Start

Use the benchmark skill to measure the API latency of the current branch and compare it against the main branch baseline.

Frequently Asked Questions about benchmark

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect Laravel performance regressions in my CI/CD pipeline?

Laravel performance regressions are detected by comparing quantitative metrics against git-tracked baselines. Standardized tests using tools like Lighthouse, wrk, and EXPLAIN ANALYZE generate reproducible JSON data to prove the impact of code changes in CI/CD pipelines.

What is the best way to measure API latency in a Laravel application?

Measuring API latency in Laravel involves executing standardized load testing tools like wrk to capture p95 latency. This skill captures before-and-after metrics to verify measurable improvements when refactoring slow endpoints.

How do I track database query execution time in Laravel?

Database query timing in Laravel is tracked using EXPLAIN ANALYZE to generate reproducible baseline JSON data. This provides quantitative proof of performance impact for database operations during local development or CI workflows.

Does this Laravel benchmarking approach work for Core Web Vitals and page load speed?

Yes, Laravel benchmarking evaluates page load performance by measuring Core Web Vitals. It uses Lighthouse to test page load speed, providing a standardized framework to ensure quantitative performance baselines are maintained.

What's the best way to prove a code change improved Laravel build velocity?

Proving Laravel build velocity improvements requires comparing before-and-after metrics using git-tracked baselines. This skill measures build and test velocity to eliminate guesswork and verify the performance impact of refactoring.

Do I need a consistent environment configuration to benchmark Laravel applications?

Yes, consistent environment configuration is required to benchmark Laravel applications. Standardized testing across page load, API latency, and database queries demands a reproducible environment to generate accurate baseline JSON data.