: ${VERBOSE:=false}
: ${CEPH_ERASURE_CODE_BENCHMARK:=ceph_erasure_code_benchmark}
: ${PLUGIN_DIRECTORY:=/usr/lib/ceph/erasure-code}
-: ${PLUGINS:=example jerasure isa}
+: ${PLUGINS:=isa jerasure_generic jerasure_sse4}
+: ${TECHNIQUES:=vandermonde cauchy}
: ${TOTAL_SIZE:=$((1024 * 1024))}
: ${SIZE:=4096}
: ${PARAMETERS:=--parameter jerasure-per-chunk-alignment=true}
local jerasure_generic2technique_cauchy='cauchy_good'
local jerasure_sse42technique_vandermonde='reed_sol_van'
local jerasure_sse42technique_cauchy='cauchy_good'
- for technique in vandermonde cauchy ; do
- for plugin in isa jerasure_generic jerasure_sse4 ; do
+ for technique in ${TECHNIQUES} ; do
+ for plugin in ${PLUGINS} ; do
eval technique_parameter=\$${plugin}2technique_${technique}
echo "serie encode_${technique}_${plugin}"
for k in $ks ; do
done
done
done
- for technique in vandermonde cauchy ; do
- for plugin in isa jerasure_generic jerasure_sse4 ; do
+ for technique in ${TECHNIQUES} ; do
+ for plugin in ${PLUGINS} ; do
eval technique_parameter=\$${plugin}2technique_${technique}
echo "serie decode_${technique}_${plugin}"
for k in $ks ; do
$(function() {
- $.plot("#encode", [
- {
+ encode = [];
+ if (typeof encode_vandermonde_isa != 'undefined') {
+ encode.push({
data: encode_vandermonde_isa,
label: "ISA, Vandermonde",
points: { show: true },
lines: { show: true },
- },
- {
+ });
+ }
+ if (typeof encode_vandermonde_jerasure_generic != 'undefined') {
+ encode.push({
data: encode_vandermonde_jerasure_generic,
label: "Jerasure Generic, Vandermonde",
points: { show: true },
lines: { show: true },
- },
- {
+ });
+ }
+ if (typeof encode_vandermonde_jerasure_sse4 != 'undefined') {
+ encode.push({
data: encode_vandermonde_jerasure_sse4,
label: "Jerasure SIMD, Vandermonde",
points: { show: true },
lines: { show: true },
- },
- {
+ });
+ }
+ if (typeof encode_cauchy_isa != 'undefined') {
+ encode.push({
data: encode_cauchy_isa,
label: "ISA, Cauchy",
points: { show: true },
lines: { show: true },
- },
- {
+ });
+ }
+ if (typeof encode_cauchy_jerasure_generic != 'undefined') {
+ encode.push({
data: encode_cauchy_jerasure_generic,
label: "Jerasure, Cauchy",
points: { show: true },
lines: { show: true },
- },
- ], {
+ });
+ }
+ $.plot("#encode", encode, {
xaxis: {
mode: "categories",
tickLength: 0
},
- }
- );
+ });
- $.plot("#decode", [
- {
+ decode = [];
+ if (typeof decode_vandermonde_isa != 'undefined') {
+ decode.push({
data: decode_vandermonde_isa,
label: "ISA, Vandermonde",
points: { show: true },
lines: { show: true },
- },
- {
+ });
+ }
+ if (typeof decode_vandermonde_jerasure_generic != 'undefined') {
+ decode.push({
data: decode_vandermonde_jerasure_generic,
label: "Jerasure Generic, Vandermonde",
points: { show: true },
lines: { show: true },
- },
- {
+ });
+ }
+ if (typeof decode_vandermonde_jerasure_sse4 != 'undefined') {
+ decode.push({
data: decode_vandermonde_jerasure_sse4,
label: "Jerasure SIMD, Vandermonde",
points: { show: true },
lines: { show: true },
- },
- {
+ });
+ }
+ if (typeof decode_cauchy_isa != 'undefined') {
+ decode.push({
data: decode_cauchy_isa,
label: "ISA, Cauchy",
points: { show: true },
lines: { show: true },
- },
- {
+ });
+ }
+ if (typeof decode_cauchy_jerasure_generic != 'undefined') {
+ decode.push({
data: decode_cauchy_jerasure_generic,
label: "Jerasure, Cauchy",
points: { show: true },
lines: { show: true },
- },
- ], {
+ });
+ }
+ $.plot("#decode", decode, {
xaxis: {
mode: "categories",
tickLength: 0
},
- }
- );
+ });
});