https://docs.opnsense.org/manual/hardware.html
Depends on what features you want to enable and how many devices are using the network but a relatively recent quad core above 2ghz is probably plenty. If you want to do packet inspection or such, more Is probably better but you're not going to need a 32 core or anything. Is there a specific reason you want a 5gb local network, or just want the fastest network you can afford?