satorigear 0.0.7 → 0.0.9
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.mjs +1315 -1608
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,18 +58,18 @@ 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
|
```
|
|
65
65
|
|
|
66
66
|
## Performance
|
|
67
67
|
|
|
68
|
-
Benchmarked against Sätteri <sup>0.10.5</sup> and Remark (`mdast-util-from-markdown@2.0.3`), which also
|
|
68
|
+
Benchmarked against Sätteri <sup>0.10.5</sup> and Remark (`mdast-util-from-markdown@2.0.3`), which also produce MDAST, with feature sets kept as equivalent as possible for each profile.
|
|
69
69
|
|
|
70
70
|
<!-- benchmark:start environment -->
|
|
71
71
|
|
|
72
|
-
> Median of
|
|
72
|
+
> Median of 4 isolated mean-time runs at commit [`174fd6c`](https://github.com/KazariEX/satorigear/commit/174fd6c3d8f1825fcd99bcbf83e2f8fc9e625ff4) 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** | 879 µs | baseline | 222 MiB/s |
|
|
85
|
+
| Sätteri | 1.19 ms | ↓ 1.35× | 164 MiB/s |
|
|
86
|
+
| Remark | 62.9 ms | ↓ 71.49× | 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** | 546 µs | baseline | 26.0 MiB/s |
|
|
93
|
+
| Sätteri | 2.21 ms | ↓ 4.05× | 6.42 MiB/s |
|
|
94
|
+
| Remark | 25.9 ms | ↓ 47.33× | 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** |
|
|
103
|
-
| Sätteri | 14.9 ms | ↓ 1.
|
|
102
|
+
| **SatoriGear** | 12.9 ms | baseline | 67.4 MiB/s |
|
|
103
|
+
| Sätteri | 14.9 ms | ↓ 1.16× | 58.2 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.
|
|
109
|
+
| **SatoriGear** | 3.02 ms | baseline | 73.4 MiB/s |
|
|
110
|
+
| Sätteri | 3.95 ms | ↓ 1.31× | 56.2 MiB/s |
|
|
111
111
|
|
|
112
112
|
<!-- benchmark:end -->
|