{"id":20691551,"url":"https://github.com/yutotnh/execution_time_of_file_existence_check","last_synced_at":"2025-03-11T01:28:18.352Z","repository":{"id":187528716,"uuid":"677022333","full_name":"yutotnh/execution_time_of_file_existence_check","owner":"yutotnh","description":"This is used to measure the execution time of the process of checking for the existence of a file.","archived":false,"fork":false,"pushed_at":"2023-08-17T22:48:03.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T17:21:02.586Z","etag":null,"topics":["c"],"latest_commit_sha":null,"homepage":"","language":"C","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/yutotnh.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-08-10T14:54:46.000Z","updated_at":"2023-08-13T05:25:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6222b5c-0395-4a2b-8f6d-80bd55dde064","html_url":"https://github.com/yutotnh/execution_time_of_file_existence_check","commit_stats":null,"previous_names":["yutotnh/execution_time_of_file_existence_check"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutotnh%2Fexecution_time_of_file_existence_check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutotnh%2Fexecution_time_of_file_existence_check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutotnh%2Fexecution_time_of_file_existence_check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutotnh%2Fexecution_time_of_file_existence_check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yutotnh","download_url":"https://codeload.github.com/yutotnh/execution_time_of_file_existence_check/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242954061,"owners_count":20212133,"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":["c"],"created_at":"2024-11-16T23:17:14.270Z","updated_at":"2025-03-11T01:28:18.322Z","avatar_url":"https://github.com/yutotnh.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# execution_time_of_file_existence_check\n\nThis is used to measure the execution time of the process of checking for the existence of a file.\n\nThere are three file checking processes, each using the following functions.\n\n- access\n- stat\n- fopen\n\n## Usage\n\n```text\nUsage: ./a.out [FILE] [LOOP_COUNT]\n```\n\n## Example\n\n```console\ngcc main.c\n./a.out dir\n```\n\n## Result\n\nCPU : AMD Ryzen 5 5600X 6-Core Processor\n\n```console\n$ uname --kernel-name --kernel-release --kernel-version --machine --operating-system --hardware-platform --processor\nLinux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux\n$ lsb_release -a\nNo LSB modules are available.\nDistributor ID: Ubuntu\nDescription:    Ubuntu 22.04.2 LTS\nRelease:        22.04\nCodename:       jammy\n$ mkdir dir\n$ cd dir\n$ for i in {1..100000}; do dd if=/dev/zero of=file$i bs=1024 count=1; done\n$ cd ..\n$ sudo sh -c \"echo 3 \u003e'/proc/sys/vm/drop_caches' \u0026\u0026 swapoff -a \u0026\u0026 swapon -a\"\n$ gcc main.c\n$ ./a.out dir\nstat:4.8385e-07\naccess:5.5645e-07\nfopen:9.8323e-07\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutotnh%2Fexecution_time_of_file_existence_check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutotnh%2Fexecution_time_of_file_existence_check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutotnh%2Fexecution_time_of_file_existence_check/lists"}