You could probably get some blazing performance out of an FPGA. I made an FPGA version of FizzBuzz a few years ago, but it was optimized for pointless VGA animation rather than performance.
https://www.righto.com/2018/04/fizzbuzz-hard-way-generating-...