{"id":16167068,"url":"https://github.com/xlucn/fio-cdm","last_synced_at":"2025-03-18T23:30:51.633Z","repository":{"id":58311765,"uuid":"238883671","full_name":"xlucn/fio-cdm","owner":"xlucn","description":"CrystalDiskMark-style disk speed test with fio. Python version","archived":false,"fork":false,"pushed_at":"2024-05-30T06:25:18.000Z","size":53,"stargazers_count":39,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T00:41:27.407Z","etag":null,"topics":["crystaldiskmark","disk","fio","speed"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xlucn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-07T09:14:08.000Z","updated_at":"2025-03-08T11:35:53.000Z","dependencies_parsed_at":"2024-10-27T19:18:41.128Z","dependency_job_id":"a5ab006f-d8eb-4054-85fa-f2c8ab1bc69f","html_url":"https://github.com/xlucn/fio-cdm","commit_stats":{"total_commits":89,"total_committers":1,"mean_commits":89.0,"dds":0.0,"last_synced_commit":"16db740547a5e196e00f98b33d6952005d91832f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Ffio-cdm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Ffio-cdm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Ffio-cdm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Ffio-cdm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xlucn","download_url":"https://codeload.github.com/xlucn/fio-cdm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244325180,"owners_count":20435054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crystaldiskmark","disk","fio","speed"],"created_at":"2024-10-10T03:05:44.531Z","updated_at":"2025-03-18T23:30:51.362Z","avatar_url":"https://github.com/xlucn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fio-cdm\n\nA python script to generate [CrystalDiskMark](https://crystalmark.info/en/software/crystaldiskmark/)-style test result with [fio](https://github.com/axboe/fio). Should work across multi platforms.\n\nThis is still WIP and I am not familiar with fio, so the test result is expected to be imprecise. Correction and advices are welcome.\n\n## Requirement\n\n- fio\n- python\n- configparser module for python2\n\n## Feature\n\n- Provide some options of CrystalDiskMark, e.g., number of test runs, test file size, mixed r/w tests, zero buffers, etc\n- Show IOPS and latency results for random read/write tests.\n  This actually combines the \"default\", \"peak performance\" and \"real world performance\" tests in CrystalDiskMark\n- Easy to add/customize new tests in command-line arguments\n- Parse `fio` result in json format to achieve more stability\n\n## Usage\n\n```\nusage: fio-cdm [target] [-h] [-0] [-a job] [-E] [-f jobfile] [-n number] [-s size] [-x [mix]]\n\npositional arguments:\n  target      The path of the directory to test. Default to current directory.\n\noptional arguments:\n  -h, --help  show this help message and exit\n  -0          Initialize buffers with zeros. Default to use random buffers.\n  -a job      Manually add multiple jobs. Format is \"seq|rnd,\u003cqueue depth\u003e,\u003cthread number\u003e\".\n              This overrides the preset jobs. This option can be used more than once.\n  -E          Disable extra information (iops, latency) for random IO tests. Default is enabled.\n  -f jobfile  Save jobfile and quit without running fio. Use \"-\" to print to stdout.\n  -n number   Number of tests, default is 5.\n  -s size     The size of file I/O. It is directly passed to fio. Default is 1G.\n  -x [mix]    Add mixed rw test. Default is disabled. \u003cmix\u003e is read percentage. Default is 70.\n\nNote:\nRecommend to put the \u003ctarget\u003e argument as the first one since some of the optional arguments will consume it.\n```\n\n### Sample output\n\nThe default tests are same as [CrystalDiskMark](https://crystalmark.info/en/software/crystaldiskmark/crystaldiskmark-main-menu/)\n\n```\ntests: 5, size: 1G, target: . 173.3GiB/405.1GiB\n|Name        | Read(MB/s)|Write(MB/s)|  Mix(MB/s)|\n|------------|-----------|-----------|-----------|\n|SEQ1M Q8 T1 |    2997.60|    2056.19|    1438.19|\n|SEQ1M Q1 T1 |    1986.94|    1461.67|     941.04|\n|RND4K Q32T16|    1816.04|     456.98|     434.18|\n|... IOPS    |  443350.17|  111546.75|  105987.62|\n|... latency |    1153.89|    4587.90|    2800.43|\n|RND4K Q1 T1 |      54.20|     164.86|      34.43|\n|... IOPS    |   13232.15|   40248.87|    8405.20|\n|... latency |      74.76|      23.04|      67.78|\n```\n\n### Examples\n\nSet test file size to 512MB, 5 test runs with read, write and mix tests:\n\n    fio-cdm -s 512m -n 5 -x\n\nManually add jobs to replace the default ones:\n\n    fio-cdm -a seq,1,1 -a seq,32,1 -a rnd,16,8\n\nShow the equivalent fio command directly (without running the test):\n\n    fio-cdm -f - | fio --showcmd -\n\n## Similar projects\n\n**Shell version**: https://github.com/buty4649/fio-cdm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlucn%2Ffio-cdm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlucn%2Ffio-cdm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlucn%2Ffio-cdm/lists"}