performance_schema is not a performance setting, it is about statistics and data collection. Whether it is turned on or off has no direct effect on performance, but if it is turned on, mysql consumes more memory. It is good that it is closed if there is no specific purpose.