-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Getting the cpu info on ubuntu takes over one second. I noticed this degradation in PyTables where the function is called at import time
- Operating System: Ubuntu 20.04.6 LTS (in a docker container)
- Python version: 3.11.6
- Version of py-cpuinfo 9.0.0
Simple benchmark on ubuntu (in a docker container)
>>> import time
>>> import cpuinfo
>>> start=time.time(); cpu_info = cpuinfo.get_cpu_info(); print(time.time() - start)
1.0749070644378662
On fedora (the same machine and CPU)
>>> start=time.time(); cpu_info = cpuinfo.get_cpu_info(); print(time.time() - start)
0.07710409164428711
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels