Manual:fileOpPerfTest.php
Appearance
| MediaWiki バージョン: | ≧ 1.20 |
| MediaWiki ファイル: fileOpPerfTest.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.45.1 • 1.44. • 1.39.16 |
| クラス: | TestFileOpPerformance |
詳細
fileOpPerfTest.php file is a maintenance script to test FileOp performance. This script includes files operation tests such as storing, copying, moving, and deleting.
オプション/引数
| オプション | 説明 | 必須かどうか |
|---|---|---|
| --b1 | Backend 1 | 必須 |
| --b2 | Backend 2 | 省略可能 |
| --srcdir | File source directory | 必須 |
| --maxfiles | Max files | 省略可能 |
| --quick | Avoid operation pre-checks (use doQuickOperations()) | 省略可能 |
| --parallelize | "parallelize" flag for doOperations() | 省略可能 |
使用法
php maintenance/run.php fileOpPerfTest --b1 backendFirst --srcdir sourceDirectory [ --b2| --maxfiles| --quick| --parallelize ]
Terminal
$ php maintenance/run.php fileOpPerfTest --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.
MediaWiki バージョン 1.39.16 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。