satorigear 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -39,6 +39,7 @@ import { createParser } from "satorigear";
39
39
  const parser = createParser({
40
40
  features: {
41
41
  attributes: true,
42
+ binding: true,
42
43
  component: true,
43
44
  footnote: true,
44
45
  frontmatter: true,
@@ -66,7 +67,7 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
66
67
 
67
68
  <!-- benchmark:start environment -->
68
69
 
69
- > Median of 5 mean-time runs at commit [`8055594`](https://github.com/KazariEX/satorigear/commit/8055594e0e201567e975453a991c81a62a90bce7) on Apple M3, node 26.5.0, arm64-darwin. Comparisons are relative to SatoriGear (↑ faster, ↓ slower); lower time and higher throughput are better.
70
+ > Median of 5 isolated mean-time runs at commit [`9570c63`](https://github.com/KazariEX/satorigear/commit/9570c634a28feffd6f437f3544071ff139f16f2f) on Apple M3, node 26.5.0, arm64-darwin. SatoriGear and Sätteri run in paired AB/BA order; comparisons are normalized to SatoriGear (↑ faster, ↓ slower). Lower time and higher throughput are better.
70
71
 
71
72
  <!-- benchmark:end -->
72
73
 
@@ -81,17 +82,17 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
81
82
 
82
83
  | Engine | Mean time | vs. SatoriGear | Throughput |
83
84
  | --- | ---: | ---: | ---: |
84
- | **SatoriGear** | 2.62 ms | baseline | 74.6 MiB/s |
85
- | Sätteri | 1.12 ms | ↑ 2.34× | 175 MiB/s |
86
- | Remark | 63.1 ms | ↓ 24.08× | 3.10 MiB/s |
85
+ | **SatoriGear** | 2.46 ms | baseline | 79.5 MiB/s |
86
+ | Sätteri | 1.13 ms | ↑ 2.17× | 173 MiB/s |
87
+ | Remark | 62.0 ms | ↓ 25.00× | 3.16 MiB/s |
87
88
 
88
89
  ##### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
89
90
 
90
91
  | Engine | Mean time | vs. SatoriGear | Throughput |
91
92
  | --- | ---: | ---: | ---: |
92
- | **SatoriGear** | 1.23 ms | baseline | 11.6 MiB/s |
93
- | Sätteri | 2.74 ms | ↓ 2.23× | 5.20 MiB/s |
94
- | Remark | 27.0 ms | ↓ 22.02× | 0.53 MiB/s |
93
+ | **SatoriGear** | 1.10 ms | baseline | 13.0 MiB/s |
94
+ | Sätteri | 2.70 ms | ↓ 2.46× | 5.28 MiB/s |
95
+ | Remark | 26.8 ms | ↓ 24.44× | 0.53 MiB/s |
95
96
 
96
97
  #### Built-in features
97
98
 
@@ -99,15 +100,15 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
99
100
 
100
101
  | Engine | Mean time | vs. SatoriGear | Throughput |
101
102
  | --- | ---: | ---: | ---: |
102
- | **SatoriGear** | 28.0 ms | baseline | 31.1 MiB/s |
103
- | Sätteri | 26.6 ms | ↑ 1.05× | 32.6 MiB/s |
103
+ | **SatoriGear** | 24.8 ms | baseline | 35.1 MiB/s |
104
+ | Sätteri | 26.6 ms | ↓ 1.07× | 32.7 MiB/s |
104
105
 
105
106
  ##### Public APIs README, 232580 bytes, 1 document
106
107
 
107
108
  | Engine | Mean time | vs. SatoriGear | Throughput |
108
109
  | --- | ---: | ---: | ---: |
109
- | **SatoriGear** | 8.14 ms | baseline | 27.3 MiB/s |
110
- | Sätteri | 2.41 ms | ↑ 3.38× | 92.2 MiB/s |
110
+ | **SatoriGear** | 7.35 ms | baseline | 30.2 MiB/s |
111
+ | Sätteri | 2.41 ms | ↑ 3.06× | 92.2 MiB/s |
111
112
 
112
113
  </details>
113
114
 
@@ -124,17 +125,17 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
124
125
 
125
126
  | Engine | Mean time | vs. SatoriGear | Throughput |
126
127
  | --- | ---: | ---: | ---: |
127
- | **SatoriGear** | 2.73 ms | baseline | 71.7 MiB/s |
128
- | Sätteri | 5.49 ms | ↓ 2.01× | 35.6 MiB/s |
129
- | Remark | 60.0 ms | ↓ 22.01× | 3.26 MiB/s |
128
+ | **SatoriGear** | 2.50 ms | baseline | 78.1 MiB/s |
129
+ | Sätteri | 5.52 ms | ↓ 2.20× | 35.4 MiB/s |
130
+ | Remark | 60.2 ms | ↓ 24.11× | 3.25 MiB/s |
130
131
 
131
132
  ##### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
132
133
 
133
134
  | Engine | Mean time | vs. SatoriGear | Throughput |
134
135
  | --- | ---: | ---: | ---: |
135
- | **SatoriGear** | 1.28 ms | baseline | 11.1 MiB/s |
136
- | Sätteri | 5.93 ms | ↓ 4.63× | 2.40 MiB/s |
137
- | Remark | 27.1 ms | ↓ 21.12× | 0.53 MiB/s |
136
+ | **SatoriGear** | 1.12 ms | baseline | 12.7 MiB/s |
137
+ | Sätteri | 5.91 ms | ↓ 5.30× | 2.41 MiB/s |
138
+ | Remark | 26.3 ms | ↓ 23.29× | 0.54 MiB/s |
138
139
 
139
140
  #### Built-in features
140
141
 
@@ -142,15 +143,15 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
142
143
 
143
144
  | Engine | Mean time | vs. SatoriGear | Throughput |
144
145
  | --- | ---: | ---: | ---: |
145
- | **SatoriGear** | 28.1 ms | baseline | 30.9 MiB/s |
146
- | Sätteri | 77.3 ms | ↓ 2.75× | 11.2 MiB/s |
146
+ | **SatoriGear** | 25.2 ms | baseline | 34.5 MiB/s |
147
+ | Sätteri | 79.8 ms | ↓ 3.20× | 10.9 MiB/s |
147
148
 
148
149
  ##### Public APIs README, 232580 bytes, 1 document
149
150
 
150
151
  | Engine | Mean time | vs. SatoriGear | Throughput |
151
152
  | --- | ---: | ---: | ---: |
152
- | **SatoriGear** | 8.84 ms | baseline | 25.1 MiB/s |
153
- | Sätteri | 20.9 ms | ↓ 2.36× | 10.6 MiB/s |
153
+ | **SatoriGear** | 7.82 ms | baseline | 28.4 MiB/s |
154
+ | Sätteri | 20.8 ms | ↓ 2.66× | 10.7 MiB/s |
154
155
 
155
156
  </details>
156
157
 
package/dist/index.d.mts CHANGED
@@ -56,6 +56,7 @@ declare module "mdast" {
56
56
  //#region src/profile/index.d.ts
57
57
  interface FeatureOptions {
58
58
  attributes?: boolean;
59
+ binding?: boolean;
59
60
  component?: boolean;
60
61
  footnote?: boolean;
61
62
  frontmatter?: boolean | FrontmatterOptions;