Add Apple M5/M5 Pro/M5 Max memory bandwidth entries (#551)

* Add Apple M5/M5 Pro/M5 Max memory bandwidth entries

M5 Max (40-core): 614 GB/s, M5 Pro: 307 GB/s, base M5: 153.6 GB/s.
These are the 2025/2026 Apple Silicon models missing from the lookup table.

Sources: Apple tech specs, notebookcheck.net benchmarks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore: cargo fmt

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
denisdrake 2026-05-19 12:17:21 +03:00 • committed by GitHub
parent 58b6dd984e
commit 1aa22bcba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2059,6 +2059,15 @@ pub fn gpu_memory_bandwidth_gbps(name: &str) -> Option<f64> {
}
// ── Apple Silicon (unified memory bandwidth) ───────────────────
if lower.contains("m5 max") {
return Some(614.0);
}
if lower.contains("m5 pro") {
return Some(307.0);
}
if lower.contains("m5") {
return Some(153.6);
}
if lower.contains("m4 ultra") {
return Some(819.0);
}
@ -2593,6 +2602,15 @@ mod tests {
super::gpu_memory_bandwidth_gbps("Apple M4 Pro"),
Some(273.0)
);
assert_eq!(
super::gpu_memory_bandwidth_gbps("Apple M5 Max"),
Some(614.0)
);
assert_eq!(
super::gpu_memory_bandwidth_gbps("Apple M5 Pro"),
Some(307.0)
);
assert_eq!(super::gpu_memory_bandwidth_gbps("Apple M5"), Some(153.6));
}
#[test]