Skip to content

dudycz/asn1_codecs_bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust ASN.1 Codecs Benchmark

This project aims to benchmark existing ASN1 PER (Packed Encoding Rules) codecs in Rust.

Codecs used in comparision

The project currently includes the following UPER codecs:

  1. rasn v0.20.1
  2. asn1-codecs v0.7.0
  3. asn1rs v0.3.1

Benchmark Results

System configuration: Ubuntu 24.04, Rustc: 1.81, AMD Ryzen 5850U 32GB RAM.

Encoding and decoding nested SEQUENCE-OF (1000 elements, 5 bytes each)

For more details regarding ASN1 definition, refer to sample.asn

Codec Encoding (µs) Decoding (µs)
rasn 1387 165
asn1-codecs 132 49
asn1rs 70 68

Encoding flat SEQUENCE-OF 1000 integers (u64)

Codec Encoding (µs)
rasn 448
asn1-codecs 53
asn1rs 35

Usage

To run the benchmarks, follow these steps:

cargo build
cargo bench

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the Apache Licence, version 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages