Decision Workspace
code-timing-macros vs metrics-lib vs exec_time
Side-by-side comparison of Rust crates
55
code-timing-macros
growingv0.0.7
Macros for easily measuring execution time of various code pieces
63
metrics-lib
growingv1.0.0
High-performance Rust metrics library: sub-2ns counters, sub-1ns gauges, nanosecond timers, tumbling-window rate meters, async timing, adaptive sampling, and system health. Cross-platform with minimal dependencies.
53
exec_time
growingv0.1.7
Attribute macro for timing sync and async Rust functions with labels, units, and slow-call thresholds
Core Metrics
| code-timing-macros | metrics-lib | exec_time | |
|---|---|---|---|
| Health Score | 55 | 63 | 53 |
| Total Downloads | 15.3K | 35.1K | 15.3K |
| 30d Downloads | 0 | 0 | 727 |
| Dependents | 15 | 19 | 16 |
| Releases | 7 | 12 | 8 |
| Last Updated | 31d ago | 55d ago | 97d ago |
| Age | 1y 10m | 10m | 6y 7m |
Health Breakdown
code-timing-macros
Maintenance
16
Quality
16
Community
8
Popularity
5
Documentation
10
metrics-lib
Maintenance
16
Quality
17
Community
10
Popularity
5
Documentation
15
exec_time
Maintenance
11
Quality
14
Community
9
Popularity
5
Documentation
14
Technical Details
| code-timing-macros | metrics-lib | exec_time | |
|---|---|---|---|
| Version | 0.0.7 | 1.0.0 | 0.1.7 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Apache-2.0 | Apache-2.0 | MIT |
| Dependencies | 5 | 19 | 4 |
| Crate Size | 11KB | 218KB | 5KB |
| Features | 4 | 17 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | — | 1.70 | 1.88 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •metrics-lib leads with a health score of 63/100, but none of the options score above 80.
- •code-timing-macros, exec_time are pre-1.0 — API may change.