Spitfire was an interceptor with terrible range. It got its speed from high power to weight ratio.
Mosquito used double the power to give speed and range. Two Mossies were could carry more ordnance to Germany than one B17. But they did it at speeds the German fighters struggled to match and with less than 1/2 the crew at risk. B17s without escort were picked off by fighters.
DeHavilland built The DH98 for speed. They took their earlier DH91 Albatross, which was fast but used considerably smaller engines and added a per of Merlins. Early ideas involved using one Napier Sabre (expected to make 2000 bhp) but they settled on twin Merlins as they are in service. The whole idea was to make a bomber so fast that it would not need defensive armaments and the drag/weight penalties of the same. The plywood construction with it's smooth surface wings and fuselage further contributed to the speed. Speed was the main aim. Long range was a useful side effect.
The US P38 Lightning was designed as a fast heavily armed high altitude interceptor fighter. One engine would not give the necessary speed. It's resultant long range was a happy accident. The US version had turbo charged Allison V12 engines capable of >400 mph at 17,000 ft. The version sold to UK had the turbos deleted and struggled to make 300mph. It few well on one engine and had long range but was far too slow. UK cancelled the contract.
The production P38 was so fast that it ran into compressibility problems at Mach 0.68. Dive brakes were added as retrofit kits but the problem persisted. The twin engines made it too fast for the aerodynamics as they were understood at the time.
The all flying tail necessary for supersonic aircraft was invented during WW2 by the Miles Aircraft Company. They used it on their M.52, specced to go 1000mpg over 1000 miles. With Eric Brown arranged to fly the first prototype, the project was infamously cancelled by Clement Attlee and the designs given to USA. But due to the outcry, 30% scale models were made and shown capable of Mach 1.38. These models were launched from a Mosquito. Here we go again on the speed issue.