|
21 | 21 | ### 1.1 High-Level Subsystems |
22 | 22 |
|
23 | 23 | ```mermaid |
| 24 | +
|
24 | 25 | graph TB |
25 | | - CLI[CLI Layer<br/>src/cli/] |
26 | | - Config[Configuration<br/>src/config/] |
27 | | - Core[Core Engine<br/>src/core/] |
28 | | - Progress[Progress Manager<br/>src/progress/] |
29 | | - Reporters[Reporters<br/>src/reporters/] |
30 | | - Storage[History Storage<br/>src/storage/] |
31 | | - Types[Type Definitions<br/>src/types/] |
32 | | -
|
33 | | - CLI --> Config |
34 | | - CLI --> Core |
35 | | - CLI --> Progress |
36 | | - CLI --> Reporters |
37 | | - CLI --> Storage |
38 | | -
|
39 | | - Core --> Config |
40 | | - Core --> Progress |
41 | | - Core --> Reporters |
42 | | - Core --> Storage |
43 | | - Core --> Types |
44 | | -
|
45 | | - Config --> Types |
46 | | - Progress --> Types |
47 | | - Reporters --> Types |
48 | | - Storage --> Types |
49 | | -
|
50 | | - Core -.->|wraps| TinyBench[TinyBench<br/>External] |
51 | | -
|
52 | | - style CLI fill:#e1f5ff |
53 | | - style Core fill:#fff4e1 |
54 | | - style Storage fill:#f0e1ff |
55 | | - style TinyBench fill:#ffe1e1 |
| 26 | + subgraph CLI["CLI Layer"] |
| 27 | + Entry[CLI Entry] |
| 28 | + end |
| 29 | +
|
| 30 | + subgraph Core["Core Engines"] |
| 31 | + Abstract[Abstract Engines] |
| 32 | + Tinybench[TinybenchEngine] |
| 33 | + Accurate[AccurateEngine] |
| 34 | + end |
| 35 | +
|
| 36 | + subgraph Services["Services & Subsystems"] |
| 37 | + Config[Configuration] |
| 38 | + Progress[Progress] |
| 39 | + Reporters[Reporters] |
| 40 | + Storage[History] |
| 41 | + Types[Types] |
| 42 | + end |
| 43 | +
|
| 44 | + Entry --> Abstract |
| 45 | + Abstract -.-> Tinybench |
| 46 | + Abstract -.-> Accurate |
| 47 | + Abstract --> Services |
| 48 | +
|
56 | 49 | ``` |
57 | 50 |
|
58 | 51 | ### 1.2 Subsystem Breakdown |
@@ -187,11 +180,6 @@ graph TB |
187 | 180 |
|
188 | 181 | Tinybench -->|Delegates to| TinybenchLib[tinybench library] |
189 | 182 | Accurate -->|Uses| V8[V8 Intrinsics<br/>+ Node hrtime] |
190 | | -
|
191 | | - style Abstract fill:#fff4e1 |
192 | | - style Tinybench fill:#e1f5ff |
193 | | - style Accurate fill:#e1ffe1 |
194 | | - style TinybenchLib fill:#ffe1e1 |
195 | 183 | ``` |
196 | 184 |
|
197 | 185 | **Abstract Base Class**: `src/core/engine.ts` |
@@ -1137,10 +1125,6 @@ flowchart TB |
1137 | 1125 | Reporters -->|Write Files| FS |
1138 | 1126 | Reporters -->|Print Output| Terminal |
1139 | 1127 | History -->|Read/Write| FS |
1140 | | -
|
1141 | | - style CLI fill:#e1f5ff |
1142 | | - style Services fill:#fff4e1 |
1143 | | - style External fill:#ffe1e1 |
1144 | 1128 | ``` |
1145 | 1129 |
|
1146 | 1130 | ### 11.2 Reporter Lifecycle |
|
0 commit comments