Just a PSA that a couple of new features of Windows 11 22H2 can really slow Mame down.
I saw 30%+ drops in some games of my bench suite (cmd line) when I recently ran it from the new Microsoft unified terminal which wraps up a new version of cmd.exe in it.
I found I had to run the cmd profile/instance as admin to return to the normal scores. This didn't use to be the case with regular windows console host version of cmd. Thankfully you can alter this default terminal application in the startup section and switch it back to windows console host instead of the new one.
The other slowdown is 'core isolation' is now defaulted to on in supported CPUs fresh installs or new PCs. You can turn this off in Windows Defender to regain the speed loss. This has impacted other games' fps as well.