satorigear 0.0.1 → 0.0.3
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 +23 -21
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +2184 -2648
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -39,12 +39,14 @@ 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,
|
|
45
46
|
math: true,
|
|
46
47
|
strikethrough: true,
|
|
47
48
|
table: true,
|
|
49
|
+
taskList: true,
|
|
48
50
|
},
|
|
49
51
|
});
|
|
50
52
|
|
|
@@ -66,7 +68,7 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
66
68
|
|
|
67
69
|
<!-- benchmark:start environment -->
|
|
68
70
|
|
|
69
|
-
> Median of 5 mean-time runs at commit [`
|
|
71
|
+
> Median of 5 isolated mean-time runs at commit [`deacb94`](https://github.com/KazariEX/satorigear/commit/deacb94abb22839aa84f32374cf348cfa27332e1) 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
72
|
|
|
71
73
|
<!-- benchmark:end -->
|
|
72
74
|
|
|
@@ -81,17 +83,17 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
81
83
|
|
|
82
84
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
83
85
|
| --- | ---: | ---: | ---: |
|
|
84
|
-
| **SatoriGear** | 2.
|
|
85
|
-
| Sätteri | 1.12 ms | ↑ 2.
|
|
86
|
-
| Remark |
|
|
86
|
+
| **SatoriGear** | 2.32 ms | baseline | 84.2 MiB/s |
|
|
87
|
+
| Sätteri | 1.12 ms | ↑ 2.07× | 174 MiB/s |
|
|
88
|
+
| Remark | 62.8 ms | ↓ 26.86× | 3.11 MiB/s |
|
|
87
89
|
|
|
88
90
|
##### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
|
|
89
91
|
|
|
90
92
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
91
93
|
| --- | ---: | ---: | ---: |
|
|
92
|
-
| **SatoriGear** | 1.
|
|
93
|
-
| Sätteri | 2.
|
|
94
|
-
| Remark |
|
|
94
|
+
| **SatoriGear** | 1.03 ms | baseline | 13.9 MiB/s |
|
|
95
|
+
| Sätteri | 2.71 ms | ↓ 2.64× | 5.25 MiB/s |
|
|
96
|
+
| Remark | 26.6 ms | ↓ 25.96× | 0.53 MiB/s |
|
|
95
97
|
|
|
96
98
|
#### Built-in features
|
|
97
99
|
|
|
@@ -99,15 +101,15 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
99
101
|
|
|
100
102
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
101
103
|
| --- | ---: | ---: | ---: |
|
|
102
|
-
| **SatoriGear** |
|
|
103
|
-
| Sätteri | 26.
|
|
104
|
+
| **SatoriGear** | 21.9 ms | baseline | 39.6 MiB/s |
|
|
105
|
+
| Sätteri | 26.7 ms | ↓ 1.22× | 32.5 MiB/s |
|
|
104
106
|
|
|
105
107
|
##### Public APIs README, 232580 bytes, 1 document
|
|
106
108
|
|
|
107
109
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
108
110
|
| --- | ---: | ---: | ---: |
|
|
109
|
-
| **SatoriGear** |
|
|
110
|
-
| Sätteri | 2.
|
|
111
|
+
| **SatoriGear** | 5.49 ms | baseline | 40.4 MiB/s |
|
|
112
|
+
| Sätteri | 2.40 ms | ↑ 2.28× | 92.4 MiB/s |
|
|
111
113
|
|
|
112
114
|
</details>
|
|
113
115
|
|
|
@@ -124,17 +126,17 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
124
126
|
|
|
125
127
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
126
128
|
| --- | ---: | ---: | ---: |
|
|
127
|
-
| **SatoriGear** | 2.
|
|
128
|
-
| Sätteri | 5.
|
|
129
|
-
| Remark |
|
|
129
|
+
| **SatoriGear** | 2.34 ms | baseline | 83.4 MiB/s |
|
|
130
|
+
| Sätteri | 5.47 ms | ↓ 2.33× | 35.7 MiB/s |
|
|
131
|
+
| Remark | 59.9 ms | ↓ 25.53× | 3.27 MiB/s |
|
|
130
132
|
|
|
131
133
|
##### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
|
|
132
134
|
|
|
133
135
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
134
136
|
| --- | ---: | ---: | ---: |
|
|
135
|
-
| **SatoriGear** | 1.
|
|
136
|
-
| Sätteri | 5.
|
|
137
|
-
| Remark |
|
|
137
|
+
| **SatoriGear** | 1.05 ms | baseline | 13.6 MiB/s |
|
|
138
|
+
| Sätteri | 5.92 ms | ↓ 5.57× | 2.41 MiB/s |
|
|
139
|
+
| Remark | 26.3 ms | ↓ 25.07× | 0.54 MiB/s |
|
|
138
140
|
|
|
139
141
|
#### Built-in features
|
|
140
142
|
|
|
@@ -142,15 +144,15 @@ Benchmarked against Sätteri and Remark, which also produce MDAST, with feature
|
|
|
142
144
|
|
|
143
145
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
144
146
|
| --- | ---: | ---: | ---: |
|
|
145
|
-
| **SatoriGear** |
|
|
146
|
-
| Sätteri |
|
|
147
|
+
| **SatoriGear** | 22.1 ms | baseline | 39.2 MiB/s |
|
|
148
|
+
| Sätteri | 79.5 ms | ↓ 3.59× | 10.9 MiB/s |
|
|
147
149
|
|
|
148
150
|
##### Public APIs README, 232580 bytes, 1 document
|
|
149
151
|
|
|
150
152
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
151
153
|
| --- | ---: | ---: | ---: |
|
|
152
|
-
| **SatoriGear** |
|
|
153
|
-
| Sätteri |
|
|
154
|
+
| **SatoriGear** | 5.76 ms | baseline | 38.5 MiB/s |
|
|
155
|
+
| Sätteri | 21.0 ms | ↓ 3.63× | 10.6 MiB/s |
|
|
154
156
|
|
|
155
157
|
</details>
|
|
156
158
|
|
package/dist/index.d.mts
CHANGED
|
@@ -56,12 +56,14 @@ 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;
|
|
62
63
|
math?: boolean | MathOptions;
|
|
63
64
|
strikethrough?: boolean | StrikethroughOptions;
|
|
64
65
|
table?: boolean;
|
|
66
|
+
taskList?: boolean;
|
|
65
67
|
}
|
|
66
68
|
//#endregion
|
|
67
69
|
//#region src/parser.d.ts
|