# Schedule Perf Test

> Schedule a one-time Windows Task Scheduler job to run the k6 boundary performance test script (perf/run-boundary-all.ps1) at a specified Beijing time. Use when the user asks to schedule, delay, or time a performance test run.

- Skill: `playerrch/schedule-perf-test` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add playerrch/schedule-perf-test`
- Raw SKILL.md: https://api.skillmd.com/api/skills/playerrch/schedule-perf-test/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: playerrch (https://skillmd.com/u/playerrch)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/playerrch/schedule-perf-test

---


# 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+
- `k6` installed 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
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 in `yyyy-MM-dd HH:mm` format (Beijing / UTC+8).
- `-WorkspacePath` — Absolute path to the project root containing `perf/run-boundary-all.ps1`.

### Step 3: Verify

After scheduling, confirm with:

```powershell
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:

```powershell
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>.log` inside the workspace.
- The task auto-deletes itself after execution if `-AutoCleanup` is passed to the script.

