satorigear 0.0.7 → 0.0.8
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 +12 -12
- package/dist/index.mjs +632 -656
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ const mdast = parser.parse("...");
|
|
|
58
58
|
const document = parser.createDocument("...");
|
|
59
59
|
document.edit([
|
|
60
60
|
{ start: 66, end: 66, text: ":" },
|
|
61
|
-
{ start:
|
|
61
|
+
{ start: 66, end: 66, text: "nuxt-img" },
|
|
62
62
|
]);
|
|
63
63
|
const mdast = document.tree;
|
|
64
64
|
```
|
|
@@ -69,7 +69,7 @@ Benchmarked against Sätteri <sup>0.10.5</sup> and Remark (`mdast-util-from-mark
|
|
|
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 [`d58864a`](https://github.com/KazariEX/satorigear/commit/d58864ae20439752f9200866169c0707547a9a15) 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
|
|
|
@@ -81,17 +81,17 @@ Benchmarked against Sätteri <sup>0.10.5</sup> and Remark (`mdast-util-from-mark
|
|
|
81
81
|
|
|
82
82
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
83
83
|
| --- | ---: | ---: | ---: |
|
|
84
|
-
| **SatoriGear** |
|
|
85
|
-
| Sätteri | 1.19 ms | ↓ 1.
|
|
86
|
-
| Remark | 62.
|
|
84
|
+
| **SatoriGear** | 955 µs | baseline | 205 MiB/s |
|
|
85
|
+
| Sätteri | 1.19 ms | ↓ 1.25× | 164 MiB/s |
|
|
86
|
+
| Remark | 62.9 ms | ↓ 65.65× | 3.11 MiB/s |
|
|
87
87
|
|
|
88
88
|
#### CommonMark 0.31.2 examples, 14919 bytes, 652 documents
|
|
89
89
|
|
|
90
90
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
91
91
|
| --- | ---: | ---: | ---: |
|
|
92
|
-
| **SatoriGear** |
|
|
93
|
-
| Sätteri | 2.
|
|
94
|
-
| Remark |
|
|
92
|
+
| **SatoriGear** | 730 µs | baseline | 19.5 MiB/s |
|
|
93
|
+
| Sätteri | 2.21 ms | ↓ 3.03× | 6.44 MiB/s |
|
|
94
|
+
| Remark | 25.9 ms | ↓ 35.50× | 0.55 MiB/s |
|
|
95
95
|
|
|
96
96
|
### Built-in features
|
|
97
97
|
|
|
@@ -99,14 +99,14 @@ Benchmarked against Sätteri <sup>0.10.5</sup> and Remark (`mdast-util-from-mark
|
|
|
99
99
|
|
|
100
100
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
101
101
|
| --- | ---: | ---: | ---: |
|
|
102
|
-
| **SatoriGear** | 14.
|
|
103
|
-
| Sätteri | 14.9 ms | ↓ 1.
|
|
102
|
+
| **SatoriGear** | 14.1 ms | baseline | 61.6 MiB/s |
|
|
103
|
+
| Sätteri | 14.9 ms | ↓ 1.06× | 58.3 MiB/s |
|
|
104
104
|
|
|
105
105
|
#### Public APIs README, 232580 bytes, 1 document
|
|
106
106
|
|
|
107
107
|
| Engine | Mean time | vs. SatoriGear | Throughput |
|
|
108
108
|
| --- | ---: | ---: | ---: |
|
|
109
|
-
| **SatoriGear** | 3.
|
|
110
|
-
| Sätteri | 3.96 ms | ↓ 1.
|
|
109
|
+
| **SatoriGear** | 3.29 ms | baseline | 67.5 MiB/s |
|
|
110
|
+
| Sätteri | 3.96 ms | ↓ 1.20× | 56.0 MiB/s |
|
|
111
111
|
|
|
112
112
|
<!-- benchmark:end -->
|