* Update all import paths * Rename directory cmd/wpcomposer/ → cmd/wppackages/ * Rename import alias wpcomposergo → wppackagesgo in main.go and migrate_test.go * Makefile — binary name wpcomposer → wppackages * Update Air path * Global replace repo.wp-composer.com → repo.wp-packages.org * Global replace cdn.wp-composer.com → cdn.wp-packages.org * Global replace wp-composer.com → wp-packages.org (remaining) * Composer repo key in templates/docs: repositories.wp-composer → repositories.wp-packages * Rename columns on the existing schema * Update all Go code referencing these column names * Routes & SEO * Templates & front-end * Admin UI * Documentation * CI/CD * Config defaults * Rename role directory * Rename all systemd template files inside the role * Update contents of all .j2 templates — service names, binary paths, descriptions * Update tasks/main.yml and handlers/main.yml in the role * Update deploy/ansible/roles/app/tasks/main.yml and deploy.yml * Update deploy/ansible/group_vars/production/main.yml * Additional renames/fixes * Additional renames/fixes * Additional renames/fixes * not needed
40 lines
904 B
Markdown
40 lines
904 B
Markdown
# WP Packages Benchmarks
|
|
|
|
Comparative benchmarks: WP Packages vs WPackagist.
|
|
|
|
## Prerequisites
|
|
|
|
- `composer` (v2+)
|
|
- `curl`
|
|
- `jq`
|
|
- `hyperfine` (optional, for statistical benchmarking — `brew install hyperfine`)
|
|
|
|
## Scripts
|
|
|
|
### `resolve.sh` — Composer resolve times
|
|
|
|
Measures cold and warm `composer update` times for both repositories using identical plugin sets (small, medium, large).
|
|
|
|
```bash
|
|
./benchmarks/resolve.sh
|
|
```
|
|
|
|
### `metadata.sh` — Repository metadata comparison
|
|
|
|
Compares metadata download sizes, TTFB, and response times for packages.json, provider files, and p2 endpoints.
|
|
|
|
```bash
|
|
./benchmarks/metadata.sh
|
|
```
|
|
|
|
### `freshness.sh` — Version freshness audit
|
|
|
|
Checks a sample of popular plugins and compares which versions each repo exposes. Detects gaps or staleness.
|
|
|
|
```bash
|
|
./benchmarks/freshness.sh
|
|
```
|
|
|
|
## Output
|
|
|
|
Results are written to `benchmarks/results/` (gitignored).
|