From patchwork Thu Sep 18 10:33:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janne Grunau X-Patchwork-Id: 4930331 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9DF1E9F350 for ; Thu, 18 Sep 2014 10:33:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 72873201FA for ; Thu, 18 Sep 2014 10:34:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 32D70201E4 for ; Thu, 18 Sep 2014 10:34:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756489AbaIRKeN (ORCPT ); Thu, 18 Sep 2014 06:34:13 -0400 Received: from soltyk.jannau.net ([185.27.253.110]:44984 "EHLO soltyk.jannau.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756379AbaIRKeG (ORCPT ); Thu, 18 Sep 2014 06:34:06 -0400 Received: from coburn.home.jannau.net (55d4585a.access.ecotel.net [85.212.88.90]) by soltyk.jannau.net (Postfix) with ESMTPSA id AD2F93E14AF for ; Thu, 18 Sep 2014 12:34:04 +0200 (CEST) From: Janne Grunau To: ceph-devel@vger.kernel.org Subject: [PATCH v2 3/3] ceph_erasure_code_benchmark: align the encoding input Date: Thu, 18 Sep 2014 12:33:55 +0200 Message-Id: <1411036435-18860-4-git-send-email-j@jannau.net> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1411036435-18860-1-git-send-email-j@jannau.net> References: <1410796508-28711-1-git-send-email-j@jannau.net> <1411036435-18860-1-git-send-email-j@jannau.net> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The benchmark is supposed to measure the encoding speed and not the overhead of buffer realignments. Signed-off-by: Janne Grunau --- src/test/erasure-code/ceph_erasure_code_benchmark.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/erasure-code/ceph_erasure_code_benchmark.cc b/src/test/erasure-code/ceph_erasure_code_benchmark.cc index c6a4228..3fedcd5 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 want_to_encode; for (int i = 0; i < k + m; i++) { want_to_encode.insert(i);