Schedule Performance Test
Creates a Windows scheduled task to run perf/run-boundary-all.ps1 at a user-specified Beijing time (UTC+8).
Prerequisites
- Windows OS with Task Scheduler enabled
- PowerShell 5.1+
k6installed and on PATH- The workspace must contain
perf/run-boundary-all.ps1
Instructions
Step 1: Determine the target time
Ask the user for the desired Beijing time (date + HH:mm). Convert to local system time if the system timezone differs from CST (UTC+8).
Step 2: Run the scheduling script
Execute the helper script with the target Beijing time and the absolute path to the workspace:
powershell -ExecutionPolicy Bypass -File "<skill_dir>/scripts/schedule.ps1" -BeijingTime "2026-04-01 22:05" -WorkspacePath "F:\cursor_project\IRyaliceshi"
Parameters:
-BeijingTime— Target run time inyyyy-MM-dd HH:mmformat (Beijing / UTC+8).-WorkspacePath— Absolute path to the project root containingperf/run-boundary-all.ps1.
Step 3: Verify
After scheduling, confirm with:
Get-ScheduledTask -TaskName "PerfBoundaryTest_*" | Format-List TaskName, State, @{N='NextRun';E={$_.Triggers[0].StartBoundary}}
Step 4: Cleanup (optional)
After the task has run, remove it:
Unregister-ScheduledTask -TaskName "PerfBoundaryTest_*" -Confirm:$false
Notes
- The scheduled task runs under the current user account.
- Task output (stdout/stderr) is logged to
perf/results/scheduled_<timestamp>.loginside the workspace. - The task auto-deletes itself after execution if
-AutoCleanupis passed to the script.