Files
cs249r_book/mlsysim/tests/test_infrastructure_registry.py
2026-06-01 15:38:03 -04:00

15 lines
562 B
Python

import pytest
from mlsysim import Infrastructure
def test_facility_cooling_pue_profiles():
assert Infrastructure.FacilityCooling.Legacy.pue == pytest.approx(1.58)
assert Infrastructure.FacilityCooling.StateOfArt.pue == pytest.approx(1.10)
assert Infrastructure.FacilityCooling.SimpleAir.pue == pytest.approx(1.50)
def test_cloud_gpu_price_anchors():
assert Infrastructure.Pricing.Cloud.LowCostGpuPerHour.rate.magnitude == pytest.approx(0.50)
assert Infrastructure.Pricing.Cloud.A10GInferencePerHour.rate.magnitude == pytest.approx(0.75)