If you want to go down the rabbit hole have a look at VPP. [0] It's a very fast, like 100GBit/s+ and 100 Mpps+, user space routing engine for commodity x86 hardware. Pim van Pelt has many interesting Videos [1] and articles [2] about it. I only tested it briefly before abandoning it because I'm still stuck on measly ~300/120 g.fast for the foreseeable future so I don't need it yet but especially the Linux CP [3] makes it reasonably workable if you have some Linux networking knowledge.
I haven't seen any recent head-to-head benchmarks but Netflix is getting really good performance from FreeBSD networking and they publish detailed information about it. It gets discussed here every six months or so. Of course networking encompasses many different workloads (e.g. routing with PFSense is going to be a different code path than serving data over HTTPS) and each OS probably has its own strengths and weaknesses.