Message ID | 1410796508-28711-3-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 84bd7da..f63fd77 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(); set<int> want_to_encode; for (int i = 0; i < k + m; i++) { want_to_encode.insert(i);
The benchmark is supposed to measure the encoding 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 | 1 + 1 file changed, 1 insertion(+)