@office-open/xml 0.10.10 → 0.10.12
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/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,31 +109,31 @@ Performance comparison against original `xml` (1.0.1) and `xml-js` (1.6.11) pack
|
|
|
109
109
|
|
|
110
110
|
| Scenario | @office-open/xml | xml | Speedup |
|
|
111
111
|
| ----------------------- | ---------------: | ---------: | --------: |
|
|
112
|
-
| Simple element | 5,
|
|
113
|
-
| Nested element | 1,
|
|
114
|
-
| Nested with declaration |
|
|
112
|
+
| Simple element | 5,440,771 hz | 805,545 hz | **6.75x** |
|
|
113
|
+
| Nested element | 1,050,272 hz | 315,184 hz | **3.33x** |
|
|
114
|
+
| Nested with declaration | 967,945 hz | 275,684 hz | **3.51x** |
|
|
115
115
|
|
|
116
116
|
### Parsing (xml2js)
|
|
117
117
|
|
|
118
|
-
| Scenario | @office-open/xml |
|
|
119
|
-
| ------------------ | ---------------: |
|
|
120
|
-
| Simple XML |
|
|
121
|
-
| Complex OOXML |
|
|
122
|
-
| With captureSpaces |
|
|
118
|
+
| Scenario | @office-open/xml | xml-js | Speedup |
|
|
119
|
+
| ------------------ | ---------------: | ---------: | --------: |
|
|
120
|
+
| Simple XML | 869,965 hz | 100,507 hz | **8.66x** |
|
|
121
|
+
| Complex OOXML | 346,440 hz | 53,621 hz | **6.46x** |
|
|
122
|
+
| With captureSpaces | 344,586 hz | 52,414 hz | **6.57x** |
|
|
123
123
|
|
|
124
124
|
### Stringifying (js2xml)
|
|
125
125
|
|
|
126
126
|
| Scenario | @office-open/xml | xml-js | Speedup |
|
|
127
127
|
| -------------- | ---------------: | ---------: | --------: |
|
|
128
|
-
| Simple element |
|
|
129
|
-
| Complex OOXML |
|
|
128
|
+
| Simple element | 793,710 hz | 207,730 hz | **3.82x** |
|
|
129
|
+
| Complex OOXML | 366,515 hz | 135,815 hz | **2.70x** |
|
|
130
130
|
|
|
131
131
|
### Direct Conversion (toElement vs bridge)
|
|
132
132
|
|
|
133
133
|
| Scenario | toElement() | xml() + xml2js() bridge | Speedup |
|
|
134
134
|
| -------- | ------------: | ----------------------: | ---------: |
|
|
135
|
-
| Simple |
|
|
136
|
-
| Nested | 4,
|
|
135
|
+
| Simple | 15,471,913 hz | 1,073,016 hz | **14.42x** |
|
|
136
|
+
| Nested | 4,278,499 hz | 441,468 hz | **9.69x** |
|
|
137
137
|
|
|
138
138
|
## Bundle Size
|
|
139
139
|
|
package/package.json
CHANGED