Add benchmarks for writeTxIn.

This commit adds a benchmark for the writeTxIn function.