Decision Workspace
mcslock vs clhlock vs bilock
Side-by-side comparison of Rust crates
55
mcslock
growingv0.4.2
An implementation of Mellor-Crummey and Scott contention-free lock for mutual exclusion, referred to as MCS lock.
40
clhlock
growingv0.2.2
An implementation of Craig and, indenpendently, Magnussen, Landin, and Hagersten queue lock for mutual exclusion, referred to as CLH lock.
49
bilock
experimentalv0.1.2
A minimal spin-lock based two-handle `Arc<Mutex<T>>` replacement
Core Metrics
| mcslock | clhlock | bilock | |
|---|---|---|---|
| Health Score | 55 | 40 | 49 |
| Total Downloads | 8.0K | 3.7K | 160 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 10 | 0 | 1 |
| Releases | 8 | 4 | 3 |
| Last Updated | 9d ago | 560d ago | 33d ago |
| Age | 2y 5m | 1y 9m | 1m |
Health Breakdown
mcslock
Maintenance
17
Quality
11
Community
9
Popularity
5
Documentation
13
clhlock
Maintenance
4
Quality
11
Community
6
Popularity
4
Documentation
15
bilock
Maintenance
12
Quality
15
Community
7
Popularity
3
Documentation
12
Technical Details
| mcslock | clhlock | bilock | |
|---|---|---|---|
| Version | 0.4.2 | 0.2.2 | 0.1.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | ISC OR MIT OR Apache-2.0 |
| Dependencies | 2 | 1 | 0 |
| Crate Size | 47KB | 31KB | 15KB |
| Features | 4 | 1 | 0 |
| Yanked % | 62.5% | 25.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.65.0 | 1.88.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •mcslock leads with a health score of 55/100, but none of the options score above 80.
- •⚠ clhlock has not been updated in over a year.