ress-wasm
v0.1.0
Published
Rss Parser, using WASM implementation.
Downloads
1
Readme
Wasm for Ressu
Part of the functionality of Ressu's WASM implementation, responsible for the RSS/XML parse and process work.
xml parse code design mode comes from github.com/iovxw/rssbot.
This section may be released as an NPM package in the future.
Benchmark
Under the blessing of WASM of Rust, the memory copy is optimized and the excellent RSS parsing speed is achieved.
The above figures are from development mode, which are expected to release mode even better
PC1
Browser: Microsoft Edge 101.0.1210.39
Hardware: CPU: i7-12700H
Mem: 32G
from wasm_bindgen_test:
- It takes 446ms to process about 3000 items, each of which is about 2.5KB in size. (data/JUMP_NS_ALL_RSS2.0.xml)
- It takes 16ms to process about 100 items, each of which is about 2.5kb in size. (data/JUMP_PS5_ALL_RSS2.0.xml)
- It takes 67ms to process about 1600 items, each of which is about 0.5kb in size. (data/QIDIAN_RSS2.0.xml)