This crate implements global, thread-safe counters.
Concerning performance, the general ranking is, from fastest to slowest:
- Flushing primitive counters
- Approximate primitive counters
- Exact primitive atomic counters
- Generic counter
Don't forget to make your own benchmarks, as those are very specific to the computing system in general and, in this case, to the OS in specific.
This module contains a global, generic counter and the accompanying
This module contains global counters for primitive integer types.
Creates a new global, generic counter, starting from the given value.
Creates a new generic, global counter, starting from its default value.