@@ -160,65 +160,65 @@ While libxmljs2 is faster at parsing medium and large documents, its performance
160
160
In these results, "ops/s" refers to operations per second. Higher is faster.
161
161
162
162
```
163
- Node.js v18.14 .0 / Darwin arm64
163
+ Node.js v22.10 .0 / Darwin arm64
164
164
Apple M1 Max
165
165
166
166
Running "Small document (291 bytes)" suite...
167
167
Progress: 100%
168
168
169
- @rgrove/parse-xml 4.1 .0:
170
- 191 553 ops/s, ±0.10 % | fastest
169
+ @rgrove/parse-xml 4.2 .0:
170
+ 253 082 ops/s, ±0.16 % | fastest
171
171
172
- fast-xml-parser 4.1.1 :
173
- 142 565 ops/s, ±0.11 % | 25.57 % slower
172
+ fast-xml-parser 4.5.0 :
173
+ 127 232 ops/s, ±0.44 % | 49.73 % slower
174
174
175
- libxmljs2 0.31 .0 (native):
176
- 74 646 ops/s, ±0.30 % | 61.03 % slower
175
+ libxmljs2 0.35 .0 (native):
176
+ 68 709 ops/s, ±2.77 % | slowest, 72.85 % slower
177
177
178
- xmldoc 1.2 .0 (sax-js):
179
- 66 823 ops/s, ±0.09 % | slowest, 65.12 % slower
178
+ xmldoc 1.3 .0 (sax-js):
179
+ 122 345 ops/s, ±0.15 % | 51.66 % slower
180
180
181
181
Finished 4 cases!
182
- Fastest: @rgrove/parse-xml 4.1 .0
183
- Slowest: xmldoc 1.2 .0 (sax-js )
182
+ Fastest: @rgrove/parse-xml 4.2 .0
183
+ Slowest: libxmljs2 0.35 .0 (native )
184
184
185
185
Running "Medium document (72081 bytes)" suite...
186
186
Progress: 100%
187
187
188
- @rgrove/parse-xml 4.1 .0:
189
- 1 065 ops/s, ±0.11 % | 49.81 % slower
188
+ @rgrove/parse-xml 4.2 .0:
189
+ 1 350 ops/s, ±0.18 % | 29.5 % slower
190
190
191
- fast-xml-parser 4.1.1 :
192
- 637 ops/s, ±0.12 % | 69.98 % slower
191
+ fast-xml-parser 4.5.0 :
192
+ 560 ops/s, ±0.48 % | slowest, 70.76 % slower
193
193
194
- libxmljs2 0.31 .0 (native):
195
- 2 122 ops/s, ±2.48 % | fastest
194
+ libxmljs2 0.35 .0 (native):
195
+ 1 915 ops/s, ±2.64 % | fastest
196
196
197
- xmldoc 1.2 .0 (sax-js):
198
- 444 ops/s, ±0.36 % | slowest, 79.08 % slower
197
+ xmldoc 1.3 .0 (sax-js):
198
+ 824 ops/s, ±0.20 % | 56.97 % slower
199
199
200
200
Finished 4 cases!
201
- Fastest: libxmljs2 0.31 .0 (native)
202
- Slowest: xmldoc 1.2.0 (sax-js)
201
+ Fastest: libxmljs2 0.35 .0 (native)
202
+ Slowest: fast-xml-parser 4.5.0
203
203
204
204
Running "Large document (1162464 bytes)" suite...
205
205
Progress: 100%
206
206
207
- @rgrove/parse-xml 4.1 .0:
208
- 93 ops/s, ±0.10 % | 53.27 % slower
207
+ @rgrove/parse-xml 4.2 .0:
208
+ 109 ops/s, ±0.17 % | 40.11 % slower
209
209
210
- fast-xml-parser 4.1.1 :
211
- 48 ops/s, ±0.60 % | 75.88 % slower
210
+ fast-xml-parser 4.5.0 :
211
+ 48 ops/s, ±0.55 % | slowest, 73.63 % slower
212
212
213
- libxmljs2 0.31 .0 (native):
214
- 199 ops/s, ±1.47 % | fastest
213
+ libxmljs2 0.35 .0 (native):
214
+ 182 ops/s, ±1.16 % | fastest
215
215
216
- xmldoc 1.2 .0 (sax-js):
217
- 38 ops/s, ±0.09 % | slowest, 80.9 % slower
216
+ xmldoc 1.3 .0 (sax-js):
217
+ 73 ops/s, ±0.50 % | 59.89 % slower
218
218
219
219
Finished 4 cases!
220
- Fastest: libxmljs2 0.31 .0 (native)
221
- Slowest: xmldoc 1.2.0 (sax-js)
220
+ Fastest: libxmljs2 0.35 .0 (native)
221
+ Slowest: fast-xml-parser 4.5.0
222
222
```
223
223
224
224
See the [ parse-xml-benchmark] ( https://github.com/rgrove/parse-xml-benchmark ) repo for instructions on how to run this benchmark yourself.
0 commit comments