run_benchmark
Measure classifier accuracy against synthetic GPU telemetry, clean and under evasion, to sanity-check robustness before reporting accuracy or modifying rules.
Instructions
Measure the shipped rule-based classifier's accuracy against documented synthetic GPU telemetry, both clean and under a deliberate evasion transform that mimics an operator disguising a training job as inference.
Call this to report or sanity-check classifier robustness (e.g.
before citing accuracy numbers, or after changing a threshold in
classifier/rules.py). Do not call it to classify a live workload
-- use classify_workload for that; this tool never touches real
GPU telemetry.
Side effects: none. Purely computational, no files written, no
network calls, no GPU access. Deterministic and idempotent -- the
same trials/window arguments reproduce the same synthetic
results every call. Runtime scales with trials; the defaults
(50 trials, window 30) finish in a few seconds.
Parameters: trials -- trials run per profile/evasion cell.
window -- telemetry samples per classification window. Example
calls: {} for the documented defaults; {"trials": 200, "window": 60} for a slower, higher-confidence accuracy read.
Returns a dict with source ("synthetic"), a note warning these
numbers are not comparable to any real-hardware benchmark,
window_size, trials_per_cell, clean_accuracy,
evasion_accuracy, and cells (a list of per-profile,
per-evasion-condition {profile, evasion, trials, correct, accuracy} breakdowns).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trials | No | ||
| window | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||