Compare asn1tools with other C code generators
masterThis benchmark compares the C source code generated by asn1tools against asn1scc and asn1c.
Key differences noted in the benchmark:
- Executable Size:
asn1toolsproduces significantly smaller executables thanasn1c. This is becauseasn1cincludes encode/decode functions for all codecs and supports more ASN.1 constructs using dynamic memory, whereasasn1toolsis optimized for UPER. - Execution Time:
asn1toolsdemonstrates faster encoding and decoding times compared toasn1sccandasn1cunder similar optimization levels (e.g.,-O3). - Code Complexity:
asn1toolshas the smallest codebase (832 lines of code), followed byasn1scc(3549 lines), andasn1c(10159 lines). - Memory Usage:
asn1toolsandasn1sccshow stable runtime memory usage, whileasn1cexhibits more significant heap usage fluctuations during execution.