Manuel:FileOpPerfTest.php
Version de MediaWiki : | ≥ 1.20 |
Fichier MediaWiki : fileOpPerfTest.php | |
---|---|
Emplacement : | maintenance/ |
Code source : | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes : | TestFileOpPerformance |
Détails
Le fichier fileOpPerfTest.php est un script de maintenance pour tester les performances de fileop. This script includes files operation tests such as storing, copying, moving, and deleting.
Options/Arguments
Option | Description | Required? |
---|---|---|
--b1 | Backend 1 | obligatoire |
--b2 | Backend 2 | optionnel |
--srcdir | File source directory | obligatoire |
--maxfiles | Max files | optionnel |
--quick | Avoid operation pre-checks (use doQuickOperations()) | optionnel |
--parallelize | "parallelize" flag for doOperations() | optionnel |
Usage
php maintenance/fileOpPerfTest.php --b1 backendFirst --srcdir sourceDirectory [ --b2| --maxfiles| --quick| --parallelize ]
Terminal
$ php maintenance/fileOpPerfTest.php --b1 local-backend --b2 AmazonS3 --srcdir images Using 'images/cache' in operations. Using 'images/archive' in operations. Using 'images/thumb' in operations. Using 'images/lockdir' in operations. Using 'images/8' in operations. Using 'images/README' in operations. Using 'images/d' in operations. Using 'images/e' in operations. Using 'images/5' in operations. local-backend: Stored 3 files in 1.51705741 ms. local-backend: Copied 3 files in 1.60479545 ms. local-backend: Moved 3 files in 4.22000885 ms. local-backend: Deleted 3 files in 3.39102745 ms.