Message ID | 1411994072-18850-5-git-send-email-j@jannau.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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++) {
The benchmark is supposed to measure the encoding/decoding speed and not the overhead of buffer realignments. Signed-off-by: Janne Grunau <j@jannau.net> --- src/test/erasure-code/ceph_erasure_code_benchmark.cc | 2 ++ 1 file changed, 2 insertions(+)