testo-benchmarks

Execute Testo method benchmarks with BenchmarkPlugin and report Mean, Median, and RStDev metrics.

203|12|Updated Oct 12, 2025
One-click install
npx skills add https://github.com/php-testo/testo --skill testo-benchmarks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testo-benchmarks
Source: https://github.com/php-testo/testo/tree/main/skills/testo-benchmarks
Command: npx skills add https://github.com/php-testo/testo --skill testo-benchmarks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables you to write and tune performance benchmarks in Testo, simplifying the process of measuring and comparing the performance of different implementations or configurations.

Core Features & Use Cases

  • Performance Benchmarking: Execute methods many times and collect timing statistics.
  • Statistical Analysis: Report Mean, Median, and RStDev, with outlier rejection.
  • Customization: Define callables, arguments, calls, and iterations for detailed benchmarking.
  • Filtering: Run only benches or exclude benches during Testo invocations.
  • Use Case: Compare the performance of two serialization methods to identify the faster option.

Quick Start

Benchmark the performance of 'json_encode' vs 'serialize' with the attached data set.

Frequently Asked Questions about testo-benchmarks

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

FAQPage Schema
How do I benchmark the performance of different PHP implementations?

To benchmark PHP implementations, this Skill executes configured callables with specified arguments and iterations, then reports Mean, Median, and RStDev metrics with outlier rejection for accurate performance comparison.

What statistical metrics are used for performance comparison in Testo?

Performance comparison in Testo uses Mean, Median, and RStDev metrics with outlier rejection. These statistics analyze timing data collected by repeatedly executing methods to identify the faster implementation.

Do I need the BenchmarkPlugin to run performance benchmarks?

Yes, the BenchmarkPlugin is required to run performance benchmarks. You must configure callables, arguments, and iterations within the plugin environment to execute methods and collect timing statistics for comparison.

Can I filter which benchmarks to run during a Testo invocation?

Yes, you can filter benchmarks during Testo invocations by running only specific benches or excluding selected benches. This allows targeted performance testing without executing the entire benchmark suite.

How do I compare serialization methods like json_encode and serialize?

To compare serialization methods, define the callables, arguments, and iterations for json_encode and serialize. The benchmark suite executes both and analyzes the resulting Mean, Median, and RStDev to identify the faster option.