#memory #performance #line #size #cache

cache-size

A library for finding your L1/L2/L3 cache sizes

11 unstable releases (3 breaking)

0.5.1 May 1, 2020
0.5.0 Feb 18, 2020
0.4.0 Sep 10, 2019
0.3.5 Jul 16, 2019
0.2.1 Aug 13, 2018

#148 in Memory management

Download history 55/week @ 2021-08-10 13/week @ 2021-08-17 87/week @ 2021-08-24 95/week @ 2021-08-31 176/week @ 2021-09-07 186/week @ 2021-09-14 138/week @ 2021-09-21 128/week @ 2021-09-28 156/week @ 2021-10-05 164/week @ 2021-10-12 83/week @ 2021-10-19 125/week @ 2021-10-26 164/week @ 2021-11-02 129/week @ 2021-11-09 148/week @ 2021-11-16 201/week @ 2021-11-23

657 downloads per month
Used in cpz

BSD-3-Clause

13KB
136 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

~115KB

^