https://github.com/codecrafters-io/flyio-disk-performance-test
https://github.com/codecrafters-io/flyio-disk-performance-test
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codecrafters-io/flyio-disk-performance-test
- Owner: codecrafters-io
- Created: 2025-08-13T23:46:30.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-08-14T00:15:00.000Z (5 months ago)
- Last Synced: 2025-09-29T15:44:45.587Z (3 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fly.io Disk Performance Test
This project tests disk performance on Fly.io by measuring the time it takes to perform different file operations on a 1GB SQLite database file:
- Symbolic link creation
- Hard link creation
- File copy (`cp`)
This tests runs against the `performance-2x` machine type in the `iad` region, and doesn't use volumes.
### Results
```
2025-08-14T00:10:08Z app[48e42d6f7573e8] iad [info]Starting symlink
2025-08-14T00:10:08Z app[48e42d6f7573e8] iad [info]- 523.923µs for symlink
2025-08-14T00:10:08Z app[48e42d6f7573e8] iad [info]Starting hardlink
2025-08-14T00:12:44Z app[48e42d6f7573e8] iad [info]- 2m35.715685394s for hardlink
2025-08-14T00:13:00Z app[d8d4e25a195538] iad [info]Starting cp
2025-08-14T00:13:33Z app[48e42d6f7573e8] iad [info]- 48.785219465s for cp
```
## Setup
1. Install the Fly.io CLI: https://fly.io/docs/hands-on/install-flyctl/
2. Authenticate with Fly.io: `fly auth login`
3. Deploy the app: `make deploy`
4. Run the test: `fly machines start `
5. View logs: `make logs`