Phoronix Test Suite - Cheatsheet Automated Benchmarking
Phoronix Test Suite (PTS) è un framework open-source di benchmarking automatizzato cross-platform. Fornisce centinaia di profili di test scaricabili (CPU, GPU, disco, memoria, compilatori, database e altro), gestisce la loro installazione e dipendenze, li esegue in modo riproducibile, aggrega i risultati e può caricare/confrontarli tramite OpenBenchmarking.org. Trasforma “benchmark il mio sistema” da un lavoro manuale in un processo ripetibile, condivisibile e turn-key.
Installazione
| Piattaforma | Comando |
|---|
| Debian/Ubuntu | sudo apt install phoronix-test-suite |
| Fedora/RHEL | sudo dnf install phoronix-test-suite |
| Arch (AUR) | yay -S phoronix-test-suite |
| Generico | scarica il tarball release, esegui ./install-sh |
| Requisito | PHP (CLI) è necessario |
| Verifica | phoronix-test-suite version |
Concetti Core
| Termine | Significato |
|---|
| Test profile | Un singolo benchmark (es pts/stress-ng) |
| Test suite | Un bundle di profili di test correlati |
| Result | Output di benchmark salvato per un sistema |
| OpenBenchmarking.org | Cloud repo di profili e risultati condivisi |
| Batch mode | Esecuzioni non-interactive per automazione |
Trovare & Installare Test
| Comando | Descrizione |
|---|
phoronix-test-suite list-available-tests | Elenca tutti i profili di test scaricabili |
phoronix-test-suite list-available-suites | Elenca le suite di test |
phoronix-test-suite search compress | Ricerca per test |
phoronix-test-suite info pts/stress-ng | Mostra dettagli su un profilo |
phoronix-test-suite install pts/stress-ng | Scarica e installa un test |
Esecuzione Benchmark
| Comando | Descrizione |
|---|
phoronix-test-suite benchmark pts/stress-ng | Installa + esegui in un passo |
phoronix-test-suite run pts/c-ray | Esegui un test installato |
phoronix-test-suite default-run pts/cpu | Esegui con opzioni default |
phoronix-test-suite benchmark build-linux-kernel | Compila lo stress del kernel (CPU+RAM+bus) |
phoronix-test-suite finish-run RESULT | Riprendi/completa un run salvato |
Durante un run PTS chiede un nome del risultato e può ripetere i test per calcolare una media confidante.
Gestione Risultati
| Comando | Descrizione |
|---|
phoronix-test-suite list-saved-results | Elenca i risultati locali |
phoronix-test-suite show-result RESULT | Visualizza un risultato |
phoronix-test-suite compare-results-to-baseline | Confronta contro una baseline |
phoronix-test-suite merge-results A B | Merge file di risultato |
phoronix-test-suite result-file-to-csv RESULT | Esporta in CSV |
phoronix-test-suite remove-result RESULT | Cancella un risultato |
Confronto Sistemi
# Esegui lo stesso test su due macchine, dai ID di risultato matching, poi:
phoronix-test-suite merge-results machineA machineB
phoronix-test-suite show-result merged # confronto fianco a fianco
Batch / Automazione
| Comando | Descrizione |
|---|
phoronix-test-suite batch-setup | Configura default non-interactive |
phoronix-test-suite batch-benchmark pts/cpu | Esegui senza prompt |
TEST_RESULTS_NAME=run1 phoronix-test-suite ... | Imposta il nome del risultato via env |
| Env vars | FORCE_TIMES_TO_RUN, BATCH_MODE, ecc controllano i run |
Info Sistema & Monitoring
| Comando | Descrizione |
|---|
phoronix-test-suite system-info | Inventario dettagliato hardware/software |
phoronix-test-suite system-sensors | Leggi sensori disponibili |
phoronix-test-suite diagnostics | Diagnostica ambiente |
Flussi di Lavoro Comuni
# Turn-key CPU + memory soak via il test kernel build
phoronix-test-suite benchmark build-linux-kernel
# Storage benchmark riproducibile, esportato per un report
phoronix-test-suite benchmark pts/fio
phoronix-test-suite result-file-to-csv <result-name>
# Validazione stabilità combinando tool: PTS per carico, guarda dmesg/journal
phoronix-test-suite batch-benchmark pts/stress-ng
| Aspetto | Phoronix Test Suite | sysbench | stress-ng |
|---|
| Scope | Centinaia di profili, molti domini | CPU/mem/IO/DB | Stressori CPU/mem/IO |
| Automazione | Completa (batch, profili, risultati) | Scripting manuale | Flag manuale |
| Condivisione risultati | OpenBenchmarking.org | Nessuna | Nessuna |
| Migliore per | Suite comparabili e riproducibili | Micro-benchmark mirati | Carico di stress/stabilità |
Risorse