BenchPress
BenchPress is a WordPress plugin for benchmarking PHP code snippets, WordPress queries, and other critical operations.
by Robert DeVore · github.com/webdevstudios/benchpress · website
★ 57stars
38release downloads
3forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/webdevstudios/benchpress/releases/download/1.2.0/benchpress.zipDeclares an update source (https://github.com/robertdevore/benchpress/), so updates arrive through the plugin's own updater.
From the readme
BenchPress
BenchPress is a WordPress® plugin for benchmarking PHP code snippets, WordPress® queries, and other critical operations.
It's designed to help developers evaluate and optimize code performance by running benchmarks and capturing snapshots for later comparison.
Table of Contents
- Installation
- Setup
- Usage
- Available Benchmarks
- Customizing Benchmarks
- Snapshots
- Plugin Settings
- Contributing
- License
Installation
1. Download the plugin ZIP from the GitHub repository.
2. Upload it via WordPress® Admin:
- Go to Plugins Add New.
- Click Upload Plugin, select the downloaded ZIP, and click Install Now.
3. Activate the plugin via the Plugins page in the WordPress® Admin.
Setup
BenchPress automatically creates a custom database table to store snapshots of benchmark results on activation. The plugin also includes settings to customize benchmark runs. To configure these:
1. Go to BenchPress Settings in your WordPress® admin sidebar.
2. Adjust loop counts, post IDs, and other options to customize how each benchmark runs.
Usage
Once installed and configured, you can run benchmarks, view results, and save snapshots for later reference:
1.
Read the full README on GitHub →