Add benchmarks for writeTxOut.

This commit adds a benchmark for the writeTxOut function.