The test I use is to reach behind the panel and touch the avionics/EFIS. If it is uncomfortable to keep fingers on it, it is too hot.
In the F1, this was often the case after shutting down for lunch on a hot summer ramp - even with insulation on both sides of the firewall and a vent slot in the glareshield, the heat from the engine would radiate back into the avionics and make the BMA EFIS do funny things on takeoff.
The GRT EFIS has not had the same problem, but having spent a bunch of money on a new EFIS, I was keen to ensure it stayed cool and happy during the summer.
About a dozen flights ago, a 2 amp-hr battery was wired into the line to the computer fan, isolated with a rectifier. This allows the battery to charge up while the Master is on, and to run for a few hours when the Master is shut off. The fan sits in a shroud made from a hardware store ABS pipe reducer and is plumbed in line with a NACA duct on the side of the fuselage. It draws approx. 1/4 amp. In flight, ram air blows harder than the fan alone, but on the ground, the fan continues pulling in outside air.
Not surprisingly, this setup lasted for about a dozen flights before the battery gave out - perhaps it didn't like being fully run down between charges. A solid state 1-hour timer is waiting to be installed which will hopefully keep the new battery happier.
In the limited testing so far, the avionics were never hotter than warm to the touch, even after the lunch-hour ramp shutdown at 90 F OAT.