diff options
Diffstat (limited to '')
-rw-r--r-- | benchmarking/conftest.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/benchmarking/conftest.py b/benchmarking/conftest.py new file mode 100644 index 0000000..a50c057 --- /dev/null +++ b/benchmarking/conftest.py @@ -0,0 +1,12 @@ +def pytest_benchmark_update_machine_info(config, machine_info): + import psutil + + freq = psutil.cpu_freq() + machine_info["psutil"] = { + "cpu_count": psutil.cpu_count(logical=False), + "cpu_count_logical": psutil.cpu_count(logical=True), + "cpu_percent": psutil.cpu_percent(), + "cpu_freq_min": freq.min, + "cpu_freq_max": freq.max, + "cpu_freq_current": freq.current, + } |