performancePerWatt

fndouble performancePerWatt()

Calculates performance-per-watt metric.

This function provides an efficiency metric indicating how much performance (work) is achieved per unit of power consumption. Higher values indicate better energy efficiency.

Returns

Performance-per-watt ratio. Returns 0.0 if unable to calculate.

Example:

auto efficiency = performancePerWatt();
writeln("Efficiency: ", efficiency, " units per watt");