{"id":22354302,"url":"https://github.com/jonmagic/ruby_atomic_file_operations","last_synced_at":"2025-03-26T12:40:38.042Z","repository":{"id":66375241,"uuid":"41870271","full_name":"jonmagic/ruby_atomic_file_operations","owner":"jonmagic","description":"A quick experiment to see how long it takes to do atomic file operations in Ruby.","archived":false,"fork":false,"pushed_at":"2015-09-04T20:40:19.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T13:43:45.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonmagic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-03T16:20:03.000Z","updated_at":"2021-06-29T21:35:44.000Z","dependencies_parsed_at":"2023-02-21T04:45:15.562Z","dependency_job_id":null,"html_url":"https://github.com/jonmagic/ruby_atomic_file_operations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fruby_atomic_file_operations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fruby_atomic_file_operations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fruby_atomic_file_operations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fruby_atomic_file_operations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonmagic","download_url":"https://codeload.github.com/jonmagic/ruby_atomic_file_operations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245658961,"owners_count":20651517,"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":[],"created_at":"2024-12-04T13:12:14.844Z","updated_at":"2025-03-26T12:40:38.019Z","avatar_url":"https://github.com/jonmagic.png","language":"Ruby","readme":"# Atomic file operations in Ruby\n\nThis is just a quick experiment to see how long it takes to do [atomic](https://en.wikipedia.org/wiki/Atomicity_(database_systems)) file operations in Ruby.\n\n## Running the experiment\n\n```bash\n$ rake\n```\n\nPlease note this also updates the results tables in this README.\n\n## Results\n\n### open-lock-write-results.csv\n\n| test_name       | MB  | ms  |\n|-----------------|-----|-----|\n| open-lock-write | 1   | 0   |\n| open-lock-write | 2   | 1   |\n| open-lock-write | 4   | 3   |\n| open-lock-write | 8   | 8   |\n| open-lock-write | 16  | 15  |\n| open-lock-write | 32  | 32  |\n| open-lock-write | 64  | 60  |\n| open-lock-write | 128 | 128 |\n| open-lock-write | 256 | 256 |\n| open-lock-write | 512 | 729 |\n\n\n### write-move-results.csv\n\n| test_name  | MB  | ms |\n|------------|-----|----|\n| write-move | 1   | 0  |\n| write-move | 2   | 1  |\n| write-move | 4   | 1  |\n| write-move | 8   | 1  |\n| write-move | 16  | 1  |\n| write-move | 32  | 2  |\n| write-move | 64  | 4  |\n| write-move | 128 | 8  |\n| write-move | 256 | 16 |\n| write-move | 512 | 30 |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Fruby_atomic_file_operations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonmagic%2Fruby_atomic_file_operations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Fruby_atomic_file_operations/lists"}