satorigear 0.0.11 → 0.0.13
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 +13 -13
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +4650 -2431
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
<pre align="center">🧪 Working in Progress</pre>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://
|
|
10
|
+
<a href="https://npmx.dev/package/satorigear"><img
|
|
11
11
|
src="https://img.shields.io/npm/v/satorigear?color=EA7FA0&labelColor=232122"
|
|
12
12
|
alt="[version]"
|
|
13
13
|
></a>
|
|
14
|
-
<a href="https://
|
|
14
|
+
<a href="https://npmx.dev/package/satorigear"><img
|
|
15
15
|
src="https://img.shields.io/npm/dm/satorigear?color=EA7FA0&labelColor=232122"
|
|
16
16
|
alt="[downloads]"
|
|
17
17
|
></a>
|
|
@@ -69,7 +69,7 @@ Benchmarked against Sätteri <sup>0.11.6</sup> and Remark (`mdast-util-from-mark
|
|
|
69
69
|
|
|
70
70
|
<!-- benchmark:start environment -->
|
|
71
71
|
|
|
72
|
-
> Median of 4 isolated mean-time runs at commit [`
|
|
72
|
+
> Median of 4 isolated mean-time runs at commit [`7076a95`](https://github.com/KazariEX/satorigear/commit/7076a95832c4fa9d764ad25f39aa8e518513e2b3) on Apple M3, node 26.13.1, arm64-darwin.
|
|
73
73
|
> SatoriGear and Sätteri run in paired AB/BA order; comparisons are normalized to SatoriGear (↑ faster, ↓ slower). Lower time and higher throughput are better.
|
|
74
74
|
|
|
75
75
|
<!-- benchmark:end -->
|
|
@@ -82,17 +82,17 @@ Benchmarked against Sätteri <sup>0.11.6</sup> and Remark (`mdast-util-from-mark
|
|
|
82
82
|
|
|
83
83
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
84
84
|
| --- | ---: | ---: | ---: |
|
|
85
|
-
| **SatoriGear** |
|
|
86
|
-
| Sätteri |
|
|
87
|
-
| Remark | 60.
|
|
85
|
+
| **SatoriGear** | 342 µs | baseline | 571 MiB/s |
|
|
86
|
+
| Sätteri | 924 µs | ↓ 2.70× | 212 MiB/s |
|
|
87
|
+
| Remark | 60.7 ms | ↓ 177.36× | 3.22 MiB/s |
|
|
88
88
|
|
|
89
89
|
#### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
|
|
90
90
|
|
|
91
91
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
92
92
|
| --- | ---: | ---: | ---: |
|
|
93
|
-
| **SatoriGear** |
|
|
94
|
-
| Sätteri | 1.
|
|
95
|
-
| Remark | 25.
|
|
93
|
+
| **SatoriGear** | 320 µs | baseline | 44.4 MiB/s |
|
|
94
|
+
| Sätteri | 1.43 ms | ↓ 4.48× | 9.92 MiB/s |
|
|
95
|
+
| Remark | 25.2 ms | ↓ 78.64× | 0.56 MiB/s |
|
|
96
96
|
|
|
97
97
|
### Built-in features
|
|
98
98
|
|
|
@@ -100,14 +100,14 @@ Benchmarked against Sätteri <sup>0.11.6</sup> and Remark (`mdast-util-from-mark
|
|
|
100
100
|
|
|
101
101
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
102
102
|
| --- | ---: | ---: | ---: |
|
|
103
|
-
| **SatoriGear** |
|
|
104
|
-
| Sätteri | 12.
|
|
103
|
+
| **SatoriGear** | 8.20 ms | baseline | 106 MiB/s |
|
|
104
|
+
| Sätteri | 12.5 ms | ↓ 1.52× | 69.7 MiB/s |
|
|
105
105
|
|
|
106
106
|
#### Public APIs README, 232580 bytes, 1 document
|
|
107
107
|
|
|
108
108
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
109
109
|
| --- | ---: | ---: | ---: |
|
|
110
|
-
| **SatoriGear** |
|
|
111
|
-
| Sätteri | 2.
|
|
110
|
+
| **SatoriGear** | 1.79 ms | baseline | 124 MiB/s |
|
|
111
|
+
| Sätteri | 2.65 ms | ↓ 1.48× | 83.7 MiB/s |
|
|
112
112
|
|
|
113
113
|
<!-- benchmark:end -->
|
package/dist/index.d.mts
CHANGED
|
@@ -15,6 +15,12 @@ interface Document {
|
|
|
15
15
|
readonly tree: Root;
|
|
16
16
|
edit: (edits: readonly TextEdit[]) => EditResult;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Fast replacement of [`micromark-util-decode-string`](
|
|
20
|
+
* https://github.com/micromark/micromark/tree/main/packages/micromark-util-decode-string
|
|
21
|
+
* ).
|
|
22
|
+
*/
|
|
23
|
+
export declare function decodeString(source: string): string;
|
|
18
24
|
interface StrikethroughOptions {
|
|
19
25
|
singleTilde?: boolean;
|
|
20
26
|
}
|