import subprocess import os from dotenv import load_dotenv import time # Load environment variables from .env load_dotenv() # Configuration file path config_path = "data/config.yml" # Command to run command = ["yourbench", "run", "--config", config_path] # Start timer start_time = time.time() # Run the command with environment variables subprocess.run(command, env=os.environ) # Calculate and print execution time execution_time = time.time() - start_time print(f"\nExecution time: {execution_time:.2f} seconds")