]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: erasure code benchmark tool
authorLoic Dachary <loic@dachary.org>
Wed, 11 Dec 2013 23:34:35 +0000 (00:34 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 20 Dec 2013 11:15:13 +0000 (12:15 +0100)
commita619fe986979c8c376c919f66208aa6746db20a2
tree4579c363c59b9b7d32db5e0f1fe7b1a37c380d94
parenta36bc5fabfdfe4ffa1eb292edb71c8cb5f54fb3d
osd: erasure code benchmark tool

Implement the ceph_erasure_code_benchmark utility to:

* load an erasure code plugin

* loop over the encode/decode function using the parameters from the
  command line

* print the number of bytes encoded/decoded and the time to process

When decoding, random chunks ( as set with --erasures ) are lost on each
run.

For instance:

    $ ceph_erasure_code_benchmark \
       --plugin jerasure \
       --parameter erasure-code-directory=.libs \
       --parameter erasure-code-technique=reed_sol_van \
       --parameter erasure-code-k=2 \
       --parameter erasure-code-m=2 \
       --workload decode \
       --erasures 2 \
       --iterations 1000
    0.964759 1048576

shows 1GB is decoded in 1second.

It is intended to be used by other scripts to present a human readable
output or detect performance regressions.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/Makefile.am
src/test/osd/ceph_erasure_code_benchmark.cc [new file with mode: 0644]
src/test/osd/ceph_erasure_code_benchmark.h [new file with mode: 0644]