jedarden
|
0e92e23de6
|
feat(bf-54zad): implement benchmark timing and throughput measurement
- Add files_per_second field to BenchmarkResult struct
- Implement calculate_files_per_second() method
- Implement save_to_file() method for JSON baseline recording
- Update run_benchmark() to calculate files_per_second metric
- Update main() to display and save files_per_second
Acceptance criteria:
✅ Timing code measures wall-clock time accurately (Instant::now)
✅ Throughput (MB/s) calculated correctly (bytes_total / duration)
✅ Files per second calculated correctly (files_total / duration_sec)
✅ Commit hash extraction works (git rev-parse HEAD)
✅ Timestamp produces ISO 8601 (chrono::Utc::now().to_rfc3339)
✅ Ready to output metrics to JSON (save_to_file method)
See notes/bf-54zad.md for verification details.
|
2026-07-06 11:22:18 -04:00 |
|