cache-size

Crates.iocache-size
lib.rscache-size
version0.7.0
sourcesrc
created_at2018-08-13 03:26:08.402894
updated_at2024-06-24 19:47:02.293503
descriptionA library for finding your L1/L2/L3 cache sizes
homepage
repositoryhttps://github.com/lovesegfault/cache-size
max_upload_size
id79192
size24,422
Bernardo Meurer (lovesegfault)

documentation

README

cache-size

License Crates.io Documentation Continuous Integration

A library to quickly get the size and line size of your CPU caches.

Currently this crate only supports x86 CPUs, since it relies on the CPUID instruction, via the raw_cpuid crate. It is a goal to support other architectures; PRs are welcome!

Note that the library will still compile and work on non x86 architectures, but the result of all the cache queries will be None.


Check the Intel 64 and IA-32 Architectures Software Developers Manual for more information on the CPUID instruction.

Commit count: 113

cargo fmt