Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu.Info() spends too much time in Windows #394

Open
gonboy opened this issue Jul 6, 2017 · 1 comment
Open

cpu.Info() spends too much time in Windows #394

gonboy opened this issue Jul 6, 2017 · 1 comment

Comments

@gonboy
Copy link

gonboy commented Jul 6, 2017

Microsoft Windows 7
Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz  4核
4G

test :

osInfo =  100.0058ms
memInfo =  0s
cpuInfo =  1.0430596s
cpuProcInfo=  276.0158ms
cpuPerfInfo =  268.0153ms
@shirou
Copy link
Owner

shirou commented Jul 8, 2017

On Windows, we use WMI to get ProcInfo and PerfInfo and WMI is not so fast.

@Lomanic Lomanic changed the title Reading spend too much time cpu.Info() spends too much time in Windows Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants