Decision Workspace
timeit vs macrotime vs metrics-lib
Side-by-side comparison of Rust crates
40
timeit
growingv0.1.2
Timing macros for Rust modelled after Python's timeit
47
macrotime
growingv2.1.0
A Rust crate for efficient timing.
62
metrics-lib
experimentalv0.9.1
The fastest metrics library for Rust. Lock-free 0.6ns gauges, 18ns counters, timers, rate meters, async timing, adaptive sampling, and system health. Cross-platform with minimal dependencies.
Core Metrics
| timeit | macrotime | metrics-lib | |
|---|---|---|---|
| Health Score | 40 | 47 | 62 |
| Total Downloads | 62.6K | 6.3K | 33.0K |
| 30d Downloads | 1.7K | 25 | 5.7K |
| Dependents | 58 | 0 | 8 |
| Releases | 3 | 10 | 7 |
| Last Updated | 3759d ago | 207d ago | 2d ago |
| Age | 10y 9m | 1y 2m | 6m |
Health Breakdown
timeit
Maintenance
3
Quality
15
Community
8
Popularity
6
Documentation
8
macrotime
Maintenance
11
Quality
15
Community
3
Popularity
5
Documentation
13
metrics-lib
Maintenance
19
Quality
14
Community
9
Popularity
5
Documentation
15
Technical Details
| timeit | macrotime | metrics-lib | |
|---|---|---|---|
| Version | 0.1.2 | 2.1.0 | 0.9.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT | Apache-2.0 |
| Dependencies | 1 | 0 | 16 |
| Crate Size | 2KB | 3KB | 138KB |
| Features | 0 | 0 | 14 |
| Yanked % | 0.0% | 20.0% | 0.0% |
| Edition | — | 2021 | 2021 |
| MSRV | — | — | 1.70 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •metrics-lib leads with a health score of 62/100, but none of the options score above 80.
- •timeit has the most downloads (62.6K), suggesting wider adoption.
- •⚠ timeit has not been updated in over a year.
- •timeit, metrics-lib are pre-1.0 — API may change.