I don’t know how you would do this, other than setting core affinity, but I’m surprised I can’t limit processing power or RAM per process on any modern OS.
Both for setting restrictions per another comment here, but also for testing purposes.
Like, I’d love to be able to run an executable with equivalent processing power to that of a specific CPU generation.