@overkill-dev/bench 0.0.3 → 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 +4 -4
- package/readme.md +36 -4
- package/sbom.cdx.json +20 -20
package/package.json
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"name": "@overkill-dev/bench",
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@overkill-dev/engine": "0.0.
|
|
26
|
-
"@overkill-dev/resources": "0.0.
|
|
27
|
-
"@overkill-dev/run": "0.0.
|
|
25
|
+
"@overkill-dev/engine": "0.0.51",
|
|
26
|
+
"@overkill-dev/resources": "0.0.12",
|
|
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.
|
|
39
|
+
"version": "0.0.5"
|
|
40
40
|
}
|
package/readme.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Ordinary test-node authoring for the Overkill benchmark package.
|
|
4
4
|
|
|
5
|
+
Included in the standard `@overkill-dev/test` installation. Standard users
|
|
6
|
+
import the same authoring surface from `@overkill-dev/test/bench`; advanced
|
|
7
|
+
consumers can install and import `@overkill-dev/bench` directly. Bench code
|
|
8
|
+
stays outside root `@overkill-dev/test` imports and ordinary microtest startup.
|
|
9
|
+
|
|
5
10
|
The current facade exports `test`, `skippedTest`, `suite`, `table`,
|
|
6
11
|
`defineMacro`, and `defineParameterizedTestBody`. These are the same
|
|
7
12
|
family-neutral constructors used by `@overkill-dev/test`, with the same
|
|
@@ -28,8 +33,35 @@ Public types include `AuthoringAnnotations`, `AuthoringControls`,
|
|
|
28
33
|
`Table`, `TestBody`, `TestCase`, `TestNode`, `TestScope`, and
|
|
29
34
|
`TestScopeAssertContext`.
|
|
30
35
|
|
|
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.
|
|
63
|
+
|
|
31
64
|
This facade does not yet measure performance. `benchmark(...)`, workloads,
|
|
32
|
-
measurement strategies,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
remain available from `@overkill-dev/test` and its resources subpath.
|
|
65
|
+
measurement strategies, and budgets are separate implementation milestones.
|
|
66
|
+
Advanced authoring and runtime binding remain available from
|
|
67
|
+
`@overkill-dev/test` and its resources subpath.
|
package/sbom.cdx.json
CHANGED
|
@@ -9,76 +9,76 @@
|
|
|
9
9
|
{
|
|
10
10
|
"type": "application",
|
|
11
11
|
"name": "packtory",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.119"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@overkill-dev/bench",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@overkill-dev/bench@0.0.
|
|
21
|
-
"purl": "pkg:npm/@overkill-dev/bench@0.0.
|
|
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": [
|
|
25
25
|
{
|
|
26
26
|
"type": "library",
|
|
27
27
|
"name": "@overkill-dev/engine",
|
|
28
|
-
"version": "0.0.
|
|
29
|
-
"bom-ref": "pkg:npm/@overkill-dev/engine@0.0.
|
|
28
|
+
"version": "0.0.51",
|
|
29
|
+
"bom-ref": "pkg:npm/@overkill-dev/engine@0.0.51",
|
|
30
30
|
"scope": "optional",
|
|
31
31
|
"licenses": [
|
|
32
32
|
{
|
|
33
33
|
"expression": "MIT"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
"purl": "pkg:npm/@overkill-dev/engine@0.0.
|
|
36
|
+
"purl": "pkg:npm/@overkill-dev/engine@0.0.51"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"type": "library",
|
|
40
40
|
"name": "@overkill-dev/resources",
|
|
41
|
-
"version": "0.0.
|
|
42
|
-
"bom-ref": "pkg:npm/@overkill-dev/resources@0.0.
|
|
41
|
+
"version": "0.0.12",
|
|
42
|
+
"bom-ref": "pkg:npm/@overkill-dev/resources@0.0.12",
|
|
43
43
|
"scope": "optional",
|
|
44
44
|
"licenses": [
|
|
45
45
|
{
|
|
46
46
|
"expression": "MIT"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
|
-
"purl": "pkg:npm/@overkill-dev/resources@0.0.
|
|
49
|
+
"purl": "pkg:npm/@overkill-dev/resources@0.0.12"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"type": "library",
|
|
53
53
|
"name": "@overkill-dev/run",
|
|
54
|
-
"version": "0.0.
|
|
55
|
-
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.
|
|
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.
|
|
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.
|
|
67
|
+
"ref": "pkg:npm/@overkill-dev/bench@0.0.5",
|
|
68
68
|
"dependsOn": [
|
|
69
|
-
"pkg:npm/@overkill-dev/engine@0.0.
|
|
70
|
-
"pkg:npm/@overkill-dev/resources@0.0.
|
|
71
|
-
"pkg:npm/@overkill-dev/run@0.0.
|
|
69
|
+
"pkg:npm/@overkill-dev/engine@0.0.51",
|
|
70
|
+
"pkg:npm/@overkill-dev/resources@0.0.12",
|
|
71
|
+
"pkg:npm/@overkill-dev/run@0.0.67"
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
"ref": "pkg:npm/@overkill-dev/engine@0.0.
|
|
75
|
+
"ref": "pkg:npm/@overkill-dev/engine@0.0.51"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"ref": "pkg:npm/@overkill-dev/resources@0.0.
|
|
78
|
+
"ref": "pkg:npm/@overkill-dev/resources@0.0.12"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
"ref": "pkg:npm/@overkill-dev/run@0.0.
|
|
81
|
+
"ref": "pkg:npm/@overkill-dev/run@0.0.67"
|
|
82
82
|
}
|
|
83
83
|
]
|
|
84
84
|
}
|