Conversely, a base Tesla Model 3 puts out about 200kW sustained for longer than most machine guns fire a string; 5.56 NATO is about 1800J; a M16 fires at 13Hz; if your process is 100% efficient this is about a power demand of 24KW or about 1/8th of what the Model 3 draws from its battery pack.
Incidentally, such a Tesla-machinegun would not be regulated as a firearm in many/most jurisdictions.
> the per-shot costs are pretty low (copper, lead, machining)
Bullets are not machined (except for exotic uses where insane accuracy is required-- 1000yd championships employing exotic chamberings and weapons, etc).