@overkill-dev/bench 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "peerDependencies": {
25
25
  "@overkill-dev/engine": "0.0.51",
26
26
  "@overkill-dev/resources": "0.0.12",
27
- "@overkill-dev/run": "0.0.66"
27
+ "@overkill-dev/run": "0.0.67"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -36,5 +36,5 @@
36
36
  "./packages/test/resource-wrapper-composition.js"
37
37
  ],
38
38
  "type": "module",
39
- "version": "0.0.4"
39
+ "version": "0.0.5"
40
40
  }
package/readme.md CHANGED
@@ -33,10 +33,33 @@ Public types include `AuthoringAnnotations`, `AuthoringControls`,
33
33
  `Table`, `TestBody`, `TestCase`, `TestNode`, `TestScope`, and
34
34
  `TestScopeAssertContext`.
35
35
 
36
- The `@overkill-dev/test` binary recognizes `overkill bench run [paths...]` and
37
- `overkill bench list [paths...]` with `--config`. These commands currently
38
- return exit code `3` because benchmark execution is not implemented. Benchmark
39
- profile selection and execution are separate implementation milestones.
36
+ The `@overkill-dev/test` binary runs benchmark profiles through
37
+ `overkill bench run [paths...]` and lists their resolved plan through
38
+ `overkill bench list [paths...]`. Configure a shared project profile:
39
+
40
+ ```ts
41
+ export const config = defineConfig({
42
+ profiles: {
43
+ startup: { testFamily: 'benchmark', files: { include: [ 'source/**/*.bench.ts' ] } }
44
+ }
45
+ });
46
+ ```
47
+
48
+ Omitting `--profile` selects the sole benchmark profile. Missing, ambiguous,
49
+ unknown, or ordinary-family selections return argument error `3`.
50
+ Both commands accept shared file, title, filter, runtime, order, seed, and shard
51
+ selection flags. Run also supports capture, precise timings, worker requests,
52
+ and diagnostic resource usage. List supports locations and orphans.
53
+
54
+ Benchmarks use the regular resource lifecycle, assertion results, attachments,
55
+ and configured reporters. Listing imports definitions but does not run bodies,
56
+ acquire resources, instantiate reporters, or write run history.
57
+ Execution defaults to a reused worker pool with serial scheduling, one case at
58
+ a time, and one executor lane across the run. Worker requests and profile caps
59
+ remain visible in execution facts. Supervised execution and fresh workers are
60
+ also supported. Hedging and concurrent groups are rejected.
61
+ Default timeouts are 5000 ms for collection, 40000 ms soft, and 60000 ms hard.
62
+ Overrides must keep soft at or below hard and hard at or below 60000 ms.
40
63
 
41
64
  This facade does not yet measure performance. `benchmark(...)`, workloads,
42
65
  measurement strategies, and budgets are separate implementation milestones.
package/sbom.cdx.json CHANGED
@@ -16,9 +16,9 @@
16
16
  "component": {
17
17
  "type": "library",
18
18
  "name": "@overkill-dev/bench",
19
- "version": "0.0.4",
20
- "bom-ref": "pkg:npm/@overkill-dev/bench@0.0.4",
21
- "purl": "pkg:npm/@overkill-dev/bench@0.0.4"
19
+ "version": "0.0.5",
20
+ "bom-ref": "pkg:npm/@overkill-dev/bench@0.0.5",
21
+ "purl": "pkg:npm/@overkill-dev/bench@0.0.5"
22
22
  }
23
23
  },
24
24
  "components": [
@@ -51,24 +51,24 @@
51
51
  {
52
52
  "type": "library",
53
53
  "name": "@overkill-dev/run",
54
- "version": "0.0.66",
55
- "bom-ref": "pkg:npm/@overkill-dev/run@0.0.66",
54
+ "version": "0.0.67",
55
+ "bom-ref": "pkg:npm/@overkill-dev/run@0.0.67",
56
56
  "scope": "optional",
57
57
  "licenses": [
58
58
  {
59
59
  "expression": "MIT"
60
60
  }
61
61
  ],
62
- "purl": "pkg:npm/@overkill-dev/run@0.0.66"
62
+ "purl": "pkg:npm/@overkill-dev/run@0.0.67"
63
63
  }
64
64
  ],
65
65
  "dependencies": [
66
66
  {
67
- "ref": "pkg:npm/@overkill-dev/bench@0.0.4",
67
+ "ref": "pkg:npm/@overkill-dev/bench@0.0.5",
68
68
  "dependsOn": [
69
69
  "pkg:npm/@overkill-dev/engine@0.0.51",
70
70
  "pkg:npm/@overkill-dev/resources@0.0.12",
71
- "pkg:npm/@overkill-dev/run@0.0.66"
71
+ "pkg:npm/@overkill-dev/run@0.0.67"
72
72
  ]
73
73
  },
74
74
  {
@@ -78,7 +78,7 @@
78
78
  "ref": "pkg:npm/@overkill-dev/resources@0.0.12"
79
79
  },
80
80
  {
81
- "ref": "pkg:npm/@overkill-dev/run@0.0.66"
81
+ "ref": "pkg:npm/@overkill-dev/run@0.0.67"
82
82
  }
83
83
  ]
84
84
  }