services

command
v5.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Command services is the harness's domain worker (plan items P3.5, P3.10).

It runs the three background workloads §1.2 defines — a 50k-row SQLite import, a full-text re-index over them, and a 2MB JSON decode — none of which belong on the render thread. That relocation IS v5's thesis: heavier work takes longer to complete, never longer to paint.

The v4 harness ran all three on the render thread and measured a loaded p95 frame of 1633 ms against a 16.8 ms idle frame. This binary exists so the same harness can measure the same workloads with them somewhere else.

It speaks a deliberately small protocol, because the point of the measurement is where the WORK runs, not how elaborate the messaging is:

in   {op:"start"|"stop", workload:"import"|"reindex"|"decode"}
out  {workload, completed, err}   progress, posted as it happens

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL