From patchwork Mon Sep 29 12:34:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janne Grunau X-Patchwork-Id: 4995861 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4FC19BEEA6 for ; Mon, 29 Sep 2014 12:34:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7AB0C20265 for ; Mon, 29 Sep 2014 12:34:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE1482025B for ; Mon, 29 Sep 2014 12:34:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753484AbaI2Mer (ORCPT ); Mon, 29 Sep 2014 08:34:47 -0400 Received: from soltyk.jannau.net ([185.27.253.110]:42039 "EHLO soltyk.jannau.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753453AbaI2Mem (ORCPT ); Mon, 29 Sep 2014 08:34:42 -0400 Received: from coburn.home.jannau.net (55d46691.access.ecotel.net [85.212.102.145]) by soltyk.jannau.net (Postfix) with ESMTPSA id D32573E1A18 for ; Mon, 29 Sep 2014 14:34:40 +0200 (CEST) From: Janne Grunau To: ceph-devel@vger.kernel.org Subject: [PATCH v3 4/4] ceph_erasure_code_benchmark: use 32-byte aligned input Date: Mon, 29 Sep 2014 14:34:32 +0200 Message-Id: <1411994072-18850-5-git-send-email-j@jannau.net> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1411994072-18850-1-git-send-email-j@jannau.net> References: <1410796508-28711-1-git-send-email-j@jannau.net> <1411994072-18850-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.7 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/decoding speed and not the overhead of buffer realignments. Signed-off-by: Janne Grunau --- 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 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 want_to_encode; for (int i = 0; i < k + m; i++) {