Benchmark

Run performance benchmarks, create baselines, and compare results

phel-lang a795921 908 B Updated

File contents

Benchmark Runner

Context

!git branch --show-current !git log --oneline -1

Instructions

  1. If $ARGUMENTS is empty or run:

    composer phpbench
    
  2. If $ARGUMENTS is baseline:

    composer phpbench-base
    

    Report that future /benchmark compare will diff against this snapshot.

  3. If $ARGUMENTS is compare:

    composer phpbench-ref
    

    Highlight any regressions (>5% slower) and improvements (>5% faster).

  4. If $ARGUMENTS looks like a class or method filter:

    ./vendor/bin/phpbench run --filter="$ARGUMENTS" --report=aggregate --ansi
    
  5. Report results focusing on:

    • Mean execution time and memory usage
    • Regressions vs improvements (when comparing)
    • Which benchmark classes were affected

phel-lang/phel-lang/tree/main/.agnostic-ai/skills/benchmark commit a7959216e0

Frequently asked questions

npx skillmds@latest add phel-lang/benchmark