You can run this script in order to extract various runtime and system measurements from a MacBook that might be relevant to performance.
This is a sample output:
{
"id": "3d0f3c61-480e-4ace-9a65-c6e09ffd2dbd",
"timestamp": "2023-12-12T19:38:27.013103Z",