joules_per_token

Function joules_per_token 

Source
pub fn joules_per_token(energy_j: f64, tokens: usize) -> Option<f64>
Expand description

2026-09-26: GPU-rail joules per delivered output token, or None when the pair cannot support a ratio: no tokens, or a joule count that is not a finite positive number (a delivered token never costs zero energy, so 0 J means the window measured nothing). None rather than 0.0 or ∞ because a ceiling bounds this value, and any sentinel would read as a pass or as a real reading.