Go find and look at a BSFC map for a random internal combustion engine of the same general concept (4-stroke? 2-stroke? Otto i.e. spark ignition stoichiometric gasoline? Diesel?). Doesn't have to be the exact same thing - just the same general operating principle. (I am ASSuming that this is what we are talking about here ... but ASSumptions can be wrong.)
What you will find is that there is no nice, simple, easy, predictable mathematical relationship here. It is a complex-looking map with the main factors being RPM (generally the horizontal axis) and BMEP i.e. "torque" i.e. "load" (generally the vertical axis).
Some things get better with faster RPM. Heat transfer from gases to surfaces, for example. Some things get worse with faster RPM. The FMEP ("friction mean effective pressure"), for example. The inertial forces involved in changing the directions of motion of pistons and valves go up with the square of RPM, and some component of those forces ends up as friction - between pistons and cylinders, between cam followers and camshafts, whatever.
Then there are confounding effects. If the engine is detonation-limited, generally that's worse at low revs (at high revs, the engine may be spinning fast enough that the self-ignition delay is longer than the time spent with enough pressure and temperature for it to matter). But it might not be. If the engine has lumpy camshafts, the volumetric efficiency at low revs might be so lousy that it won't detonate until it gets into an RPM range where the camshafts actually start working. If it's turbocharged (or centrifugal-supercharged), maybe it won't make enough boost pressure to get the cylinder pressure and temperature into a detonation-prone region until the engine is spinning fast enough for the turbo to make decent boost pressure. If the engine is detonation-limited, perhaps it has to take efficiency-killing countermeasures in certain operating conditions - like delaying the ignition timing, or running rich. That's one reason why the efficiency may drop off right near full load in the affected RPM range.
Lots of engines are thermally limited, too, and have to run rich beyond a certain load setting in order to avoid melting pistons, valves, or catalytic converters.
So, the upshot is that you are asking a very simple question about something that is enormously complex.