Closed mintyc closed 4 years ago
Thanks Paul, will do.
I've updated the benchmarks / README
-------------------------------------------------------------------------------
Benchmark: Decode Performance
-------------------------------------------------------------------------------
...............................................................................
benchmark name iters elapsed ns average
-------------------------------------------------------------------------------
fast_ber - 1,000,000 x decode 2107B pdu 1 516381442 516.381 ms
asn1c - 1,000,000 x decode 2107B pdu 1 4996255249 4.99626 s
fast_ber - 1,000,000 x decode 64B pdu 1 192230063 192.23 ms
asn1c - 1,000,000 x decode 64B pdu 1 2581069031 2.58107 s
-------------------------------------------------------------------------------
Benchmark: Encode Performance
-------------------------------------------------------------------------------
...............................................................................
benchmark name iters elapsed ns average
-------------------------------------------------------------------------------
fast_ber - 1,000,000 x encode 2107B pdu 1 191266512 191.267 ms
asn1c - 1,000,000 x encode 2107B pdu 1 7349946740 7.34995 s
-------------------------------------------------------------------------------
Benchmark: Object Construction Performance
-------------------------------------------------------------------------------
...............................................................................
benchmark name iters elapsed ns average
-------------------------------------------------------------------------------
fast_ber - 1,000,000 x construct data 1 1005938231 1.00594 s
asn1c - 1,000,000 x construct data 1 511881940 511.882 ms
-------------------------------------------------------------------------------
Benchmark: Calculate Encoded Length Performance
-------------------------------------------------------------------------------
...............................................................................
benchmark name iters elapsed ns average
-------------------------------------------------------------------------------
fast_ber - 1,000,000 x encoded length 1 17084558 17.0846 ms
===============================================================================
All tests passed (31 assertions in 8 test cases)
Cheers Sam. Its fast!
Perhaps change the text for each test to reflect that 1 iteration is for 1m loops (warm cache)
Makes the numbers look much better :)