satorigear 0.0.6 → 0.0.7
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 +19 -67
- package/dist/index.mjs +784 -831
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -65,96 +65,48 @@ const mdast = document.tree;
|
|
|
65
65
|
|
|
66
66
|
## Performance
|
|
67
67
|
|
|
68
|
-
Benchmarked against Sätteri and Remark, which also
|
|
68
|
+
Benchmarked against Sätteri <sup>0.10.5</sup> and Remark (`mdast-util-from-markdown@2.0.3`), which also return eagerly materialized MDAST, with feature sets kept as equivalent as possible for each profile.
|
|
69
69
|
|
|
70
70
|
<!-- benchmark:start environment -->
|
|
71
71
|
|
|
72
|
-
> Median of 5 isolated mean-time runs at commit [`
|
|
72
|
+
> Median of 5 isolated mean-time runs at commit [`0e6349b`](https://github.com/KazariEX/satorigear/commit/0e6349b5cf4722efc88d0f763204d61b42d9e870) 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.
|
|
73
73
|
|
|
74
74
|
<!-- benchmark:end -->
|
|
75
75
|
|
|
76
|
-
<!-- benchmark:start parse
|
|
76
|
+
<!-- benchmark:start parse -->
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
<summary><strong>Parse only</strong></summary>
|
|
78
|
+
### CommonMark
|
|
80
79
|
|
|
81
|
-
#### CommonMark
|
|
82
|
-
|
|
83
|
-
##### CommonMark 0.31.2 specification, 205025 bytes, 1 document
|
|
80
|
+
#### CommonMark 0.31.2 specification, 205025 bytes, 1 document
|
|
84
81
|
|
|
85
82
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
86
83
|
| --- | ---: | ---: | ---: |
|
|
87
|
-
| **SatoriGear** | 1.
|
|
88
|
-
| Sätteri | 1.
|
|
89
|
-
| Remark | 62.
|
|
84
|
+
| **SatoriGear** | 1.10 ms | baseline | 178 MiB/s |
|
|
85
|
+
| Sätteri | 1.19 ms | ↓ 1.09× | 164 MiB/s |
|
|
86
|
+
| Remark | 62.5 ms | ↓ 56.63× | 3.13 MiB/s |
|
|
90
87
|
|
|
91
|
-
|
|
88
|
+
#### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
|
|
92
89
|
|
|
93
90
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
94
91
|
| --- | ---: | ---: | ---: |
|
|
95
|
-
| **SatoriGear** |
|
|
96
|
-
| Sätteri | 2.
|
|
97
|
-
| Remark | 26.2 ms | ↓
|
|
92
|
+
| **SatoriGear** | 742 µs | baseline | 19.2 MiB/s |
|
|
93
|
+
| Sätteri | 2.20 ms | ↓ 2.97× | 6.45 MiB/s |
|
|
94
|
+
| Remark | 26.2 ms | ↓ 35.25× | 0.54 MiB/s |
|
|
98
95
|
|
|
99
|
-
|
|
96
|
+
### Built-in features
|
|
100
97
|
|
|
101
|
-
|
|
98
|
+
#### Rust release history, 910115 bytes, 1 document
|
|
102
99
|
|
|
103
100
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
104
101
|
| --- | ---: | ---: | ---: |
|
|
105
|
-
| **SatoriGear** |
|
|
106
|
-
| Sätteri |
|
|
102
|
+
| **SatoriGear** | 14.5 ms | baseline | 59.7 MiB/s |
|
|
103
|
+
| Sätteri | 14.9 ms | ↓ 1.03× | 58.2 MiB/s |
|
|
107
104
|
|
|
108
|
-
|
|
105
|
+
#### Public APIs README, 232580 bytes, 1 document
|
|
109
106
|
|
|
110
107
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
111
108
|
| --- | ---: | ---: | ---: |
|
|
112
|
-
| **SatoriGear** | 3.
|
|
113
|
-
| Sätteri |
|
|
114
|
-
|
|
115
|
-
</details>
|
|
116
|
-
|
|
117
|
-
<!-- benchmark:end -->
|
|
118
|
-
|
|
119
|
-
<!-- benchmark:start fully materialized -->
|
|
120
|
-
|
|
121
|
-
<details>
|
|
122
|
-
<summary><strong>Fully materialized</strong></summary>
|
|
123
|
-
|
|
124
|
-
#### CommonMark
|
|
125
|
-
|
|
126
|
-
##### CommonMark 0.31.2 specification, 205025 bytes, 1 document
|
|
127
|
-
|
|
128
|
-
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
129
|
-
| --- | ---: | ---: | ---: |
|
|
130
|
-
| **SatoriGear** | 1.42 ms | baseline | 138 MiB/s |
|
|
131
|
-
| Sätteri | 5.48 ms | ↓ 3.86× | 35.7 MiB/s |
|
|
132
|
-
| Remark | 60.0 ms | ↓ 42.40× | 3.26 MiB/s |
|
|
133
|
-
|
|
134
|
-
##### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
|
|
135
|
-
|
|
136
|
-
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
137
|
-
| --- | ---: | ---: | ---: |
|
|
138
|
-
| **SatoriGear** | 940 µs | baseline | 15.1 MiB/s |
|
|
139
|
-
| Sätteri | 5.88 ms | ↓ 6.27× | 2.42 MiB/s |
|
|
140
|
-
| Remark | 26.1 ms | ↓ 27.80× | 0.54 MiB/s |
|
|
141
|
-
|
|
142
|
-
#### Built-in features
|
|
143
|
-
|
|
144
|
-
##### Rust release history, 910115 bytes, 1 document
|
|
145
|
-
|
|
146
|
-
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
147
|
-
| --- | ---: | ---: | ---: |
|
|
148
|
-
| **SatoriGear** | 18.8 ms | baseline | 46.1 MiB/s |
|
|
149
|
-
| Sätteri | 79.6 ms | ↓ 4.23× | 10.9 MiB/s |
|
|
150
|
-
|
|
151
|
-
##### Public APIs README, 232580 bytes, 1 document
|
|
152
|
-
|
|
153
|
-
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
154
|
-
| --- | ---: | ---: | ---: |
|
|
155
|
-
| **SatoriGear** | 4.36 ms | baseline | 50.8 MiB/s |
|
|
156
|
-
| Sätteri | 20.7 ms | ↓ 4.75× | 10.7 MiB/s |
|
|
157
|
-
|
|
158
|
-
</details>
|
|
109
|
+
| **SatoriGear** | 3.37 ms | baseline | 65.8 MiB/s |
|
|
110
|
+
| Sätteri | 3.96 ms | ↓ 1.17× | 56.0 MiB/s |
|
|
159
111
|
|
|
160
112
|
<!-- benchmark:end -->
|