- 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. |
||
|---|---|---|
| .. | ||
| benches | ||
| examples | ||
| src | ||
| tests | ||
| -.json | ||
| build.rs | ||
| Cargo.toml | ||
| header | ||
| pdftract-cli.cdx.json | ||