12 releases

0.6.0 Mar 14, 2022
0.5.1 May 1, 2020
0.5.0 Feb 18, 2020
0.4.0 Sep 10, 2019
0.2.1 Aug 13, 2018

#360 in Memory management

Download history 250/week @ 2023-12-15 28/week @ 2023-12-22 40/week @ 2023-12-29 223/week @ 2024-01-05 192/week @ 2024-01-12 244/week @ 2024-01-19 338/week @ 2024-01-26 276/week @ 2024-02-02 308/week @ 2024-02-09 276/week @ 2024-02-16 416/week @ 2024-02-23 506/week @ 2024-03-01 604/week @ 2024-03-08 735/week @ 2024-03-15 634/week @ 2024-03-22 436/week @ 2024-03-29

2,518 downloads per month
Used in 2 crates

BSD-3-Clause

16KB
177 lines

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.

Dependencies

~590KB
~11K SLoC