satorigear 0.0.12 → 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 CHANGED
@@ -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 [`2150a58`](https://github.com/KazariEX/satorigear/commit/2150a5873add93ceeb7851c537b1631943be5e2c) on Apple M3, node 26.5.0, arm64-darwin.
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** | 416 µs | baseline | 470 MiB/s |
86
- | Sätteri | 918 µs | ↓ 2.21× | 213 MiB/s |
87
- | Remark | 60.6 ms | ↓ 145.56× | 3.23 MiB/s |
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** | 376 µs | baseline | 37.9 MiB/s |
94
- | Sätteri | 1.44 ms | ↓ 3.82× | 9.90 MiB/s |
95
- | Remark | 25.3 ms | ↓ 67.33× | 0.56 MiB/s |
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** | 8.79 ms | baseline | 98.8 MiB/s |
104
- | Sätteri | 12.6 ms | ↓ 1.44× | 68.6 MiB/s |
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** | 1.96 ms | baseline | 113 MiB/s |
111
- | Sätteri | 2.65 ms | ↓ 1.35× | 83.7 MiB/s |
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
  }