added benchmarks for Encode and Decode