Add benchmarks for encoding/decoding.