Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonmagic/ruby_atomic_file_operations
A quick experiment to see how long it takes to do atomic file operations in Ruby.
https://github.com/jonmagic/ruby_atomic_file_operations
Last synced: 30 days ago
JSON representation
A quick experiment to see how long it takes to do atomic file operations in Ruby.
- Host: GitHub
- URL: https://github.com/jonmagic/ruby_atomic_file_operations
- Owner: jonmagic
- Created: 2015-09-03T16:20:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-04T20:40:19.000Z (over 9 years ago)
- Last Synced: 2023-04-10T22:39:33.580Z (over 1 year ago)
- Language: Ruby
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Atomic file operations in Ruby
This 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.
## Running the experiment
```bash
$ rake
```Please note this also updates the results tables in this README.
## Results
### open-lock-write-results.csv
| test_name | MB | ms |
|-----------------|-----|-----|
| open-lock-write | 1 | 0 |
| open-lock-write | 2 | 1 |
| open-lock-write | 4 | 3 |
| open-lock-write | 8 | 8 |
| open-lock-write | 16 | 15 |
| open-lock-write | 32 | 32 |
| open-lock-write | 64 | 60 |
| open-lock-write | 128 | 128 |
| open-lock-write | 256 | 256 |
| open-lock-write | 512 | 729 |### write-move-results.csv
| test_name | MB | ms |
|------------|-----|----|
| write-move | 1 | 0 |
| write-move | 2 | 1 |
| write-move | 4 | 1 |
| write-move | 8 | 1 |
| write-move | 16 | 1 |
| write-move | 32 | 2 |
| write-move | 64 | 4 |
| write-move | 128 | 8 |
| write-move | 256 | 16 |
| write-move | 512 | 30 |