Usual light bulbs consume 40-100W to produce <5W light, so if the efficiency were the same, 100W electrolysis would make as much light - with added sodium and everything needed.
But this is very indirect and probably inefficient. Some of the combustion heat (or radicals) would excite a small proportion of the sodium atoms, and some of the excited atoms would convert the energy into light.
Acetylene with limited air supply makes a strong white light, which unseeded hydrogen doesn't. An electric cycle can regenerate C2Ca from Ca(OH)2 and CO2. Quite indirect!
As opposed, you can make an electric discharge directly in sodium vapour. If well built, this sodium lamp provides 40% efficiency, the best among electric lamps.
Sure, they don't have the fascinating flame.