Flame ionization testing in an internal combustion engine to measure the speed of the flame for gaseous fuels