dotnet / dotnet/BenchmarkDotNet

Feature: Add RAM Frequency and Type to Environment Summary

Open
#3,041 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11.5k
Forks
1.1k
Avg merge
6d 11h
Merged PRs (30d)
12

Description

As discussed in PR #3038 with @timcassell, it would be highly useful to include the RAM Frequency (e.g., 3200 MHz) and Type (e.g., DDR4/DDR5) in the environment summary, alongside the Total and Available memory.

Currently, the summary outputs:
`Memory: 16 GB Total, 8.5 GB Available`

The goal is to enhance this to something like:
`Memory: 16 GB Total, 8.5 GB Available, DDR4 3200 MHz`

**Implementation considerations for cross-platform support:**
* **Windows:** Can likely be retrieved via WMI (`Win32_PhysicalMemory` -> `Speed` and `MemoryType`/`SMBIOSMemoryType`).
* **Linux:** Might require parsing `dmidecode -t memory`, which often requires `sudo` privileges. This could be a blocker for standard user-level benchmark runs.
* **macOS:** Can potentially be retrieved using `system_profiler SPHardwareDataType`, but the performance overhead of calling this needs to be evaluated.

I am opening this issue to track the feature request and open the floor for discussion on the best approach to retrieve this hardware data reliably across all platforms without heavy dependencies or permission issues.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.