On the Performance of Pulsed and Spiking Neurons