Skip to content

Commit

Permalink
autotest/benchmark/conftest.py: add RAM and CPU count
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Oct 29, 2023
1 parent 4519577 commit abb4f88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autotest/benchmark/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@ def pytest_report_header(config):

if "debug" in gdal.VersionInfo(""):
gdal_header_info += "WARNING: Running benchmarks on debug build. Results will not be accurate.\n"
gdal_header_info += "Usable RAM: %d MB\n" % (
gdal.GetUsablePhysicalRAM() / (1024 * 1024)
)
gdal_header_info += "Number of CPUs: %d\n" % (gdal.GetNumCPUs())

return gdal_header_info

0 comments on commit abb4f88

Please sign in to comment.