musli-tests
Helper utilities for ensuring that musli is safe to use and behaves as expected.
This does include a fairly sophisticated benchmarking suite.
Benchmarking
Now this includes the extra category, which requires model_minimal. This
is not exactly a fair comparison, because it compares serialization formats
which were designed to model data that others are not capable off.
The exact tradeoff can be seen by comparing the feature model_full with
model_minimal.
To run benchmarks for serialization suites which do support all features, do:
Fuzz testing
This comes with the fuzz binary which can do the following things.
Run serialization for a long time against a lot of random data. Both with and without miri. When run with miri, the size of the datasets is drastically reduced.
Run deserialization against randomly generated bytes. Both with and without miri. When run with miri, the size of the datasets is drastically reduced.
Note you can add the running of optional crates by enabling its corresponding feature, such as
--features bincode.
Potential security issues discovered by this crate
dlhn: Allocating and initializing large arrays based on untrusted input (DoS): dlhn#11.