The Break-Even Millijoules
The Break-Even Millijoules
Ada re-derives this chapter’s own numbers step by step, at full precision
ADA · CALCULATION AUDIT
The Break-Even Millijoules
The chapter’s ledger says local inference costs about 6 mJ while offloading costs about 2.7 mJ — a 2.2x saving — until a tenfold payload pushes the transmit cost to 24.3 mJ, now 4.1x more than staying local. Energy is just power times time. This audit confirms each figure to find the break-even millijoules where the inequality flips.
Companion to the chapter Fog Energy-Latency Tradeoffs — every number here comes from that chapter.
See the relationship before changing it
The figure reads from left to right. The blue card is transmit time. The middle card applies the page rule. The green card is offload energy. Walk the arrows once: set the input, apply the rule, then read the result with its unit.
Derive the baseline in four named moves
- 1
Name the input. The chapter baseline is 20 ms.
- 2
Name the relationship. energy = (120 mW x transmit ms + 60 mW x 5 ms) / 1000
- 3
Substitute with units. (120 x 20 + 60 x 5) / 1000 = 2.70 mJ
- 4
Read the result. Keep the unit beside the value. Use it only inside the technical boundary on this page.
Predict, then change transmit time
Try Predict the direction of energy = (120 mW x transmit ms + 60 mW x 5 ms) / 1000. Test another transmit time, then compare offload energy.
Observe Payload size stretches transmit time until offloading costs more than local work. Reset transmit time to 20 and compare offload energy.
Explain Payload size stretches transmit time until offloading costs more than local work.
Check yourself
What should you do before trusting a moved-control result?
What does this small model leave out?
Ada: The ledger above says local inference costs about 6 mJ, the radio side about 2.7 mJ, and that a tenfold payload can erase the saving. Energy is just power times time, so let me confirm each figure with 1 mW x 1 ms = 1 microjoule.
- Local.
40 mW x 150 ms = 6,000 uJ = 6.0 mJ. - Offload. Transmit
120 mW x 20 ms = 2,400 uJplus receive60 mW x 5 ms = 300 uJ, totalling2,700 uJ = 2.7 mJ— about6.0 / 2.7 = 2.2xcheaper than local, before overhead. - Tenfold payload. Transmit time scales with data size, so
20 ms x 10 = 200 msand transmit energy becomes120 mW x 200 ms = 24,000 uJ. With the same receive term that is24,000 + 300 = 24,300 uJ = 24.3 mJ, now24.3 / 6.0 = 4.1xmore than staying local.
The inequality flips between 2.2x for and 4.1x against as the payload grows, which is why break-even is a measurement, not a rule. And even in the 2.7 mJ case where offload wins on joules, the round trip and fog queue still have to clear the response budget before the energy saving is allowed to count.
The energy break-even deliberately does not simulate radio ramp states, payload framing, retransmissions, codec cost, thermal throttling, or latency tails; it multiplies the stated constant powers by durations for one transaction.
Work the audit first, then check the displayed derivation.
Every number above is taken from the chapter’s own material and re-derived step by step.