It's interesting to me that being on A/C and Battery power showed a performance difference: when I benchmarked a M1 Pro MBPro against an Intel 2015 MBPro two years ago, I didn't notice any performance differences between being on battery or using mains power in either laptop, which surprised me at the time:
https://pixelesque.net/blog/2022/08/basic-apple-m1-pro-cpu-b...
I wonder what the difference is... Maybe my tests were too short to show the difference between mains and battery?