The benchmark is supposed to measure the encoding/decoding speed and not the overhead of buffer realignments. Signed-off-by: Janne Grunau <j@xxxxxxxxxx> --- src/test/erasure-code/ceph_erasure_code_benchmark.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/erasure-code/ceph_erasure_code_benchmark.cc b/src/test/erasure-code/ceph_erasure_code_benchmark.cc index c6a4228..71d22a7 100644 --- a/src/test/erasure-code/ceph_erasure_code_benchmark.cc +++ b/src/test/erasure-code/ceph_erasure_code_benchmark.cc @@ -144,6 +144,7 @@ int ErasureCodeBench::encode() bufferlist in; in.append(string(in_size, 'X')); + in.rebuild_aligned(32); set<int> want_to_encode; for (int i = 0; i < k + m; i++) { want_to_encode.insert(i); @@ -183,6 +184,7 @@ int ErasureCodeBench::decode() } bufferlist in; in.append(string(in_size, 'X')); + in.rebuild_aligned(32); set<int> want_to_encode; for (int i = 0; i < k + m; i++) { -- 2.1.1 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html