Note
This repository has been moved into the prelude-parser repository. All functionality and the crate name remain unchanged.
Deserialize Prelude EDC native XML files into Rust structs. Enabling the python feature allows
deserializing to Python classes with PyO3.
- Subject native XML
- Site Native XML
- User Native XML
Benchmarks are run with criterion and cover all three
parsers, in both their _string and _file forms, across a range of input sizes. Inputs are
generated at run time by replicating the fixtures in tests/assets/, so no extra setup is needed:
just benchAn HTML report is written to target/criterion/report/index.html.
For a faster measurement that stops as soon as the significance level is reached (~20s instead of several minutes):
just bench-quickTo only check that the benchmarks still run, without measuring anything:
just bench-smokeTo additionally benchmark against a real subject native export, point BENCH_XML_FILE at it:
BENCH_XML_FILE=/path/to/subject_native.xml cargo bench