ceph/qa/workunits/erasure-code/plot.js
Loic Dachary 8363a94a60 erasure-code: HTML display of benchmark results
The ceph_erasure_code_benchmark output is converted into a JSON series
suitable to display in HTML with the http://www.flotcharts.org/
library. A self contained copy of the HTML,JS,CSS files is included for
durability and can be used from the source tree with:

    CEPH_ERASURE_CODE_BENCHMARK=src/ceph_erasure_code_benchmark  \
    PLUGIN_DIRECTORY=src/.libs \
        qa/workunits/erasure-code/bench.sh fplot jerasure |
        tee qa/workunits/erasure-code/bench.js

and display with:

    firefox qa/workunits/erasure-code/bench.html

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-08-04 11:42:05 +02:00

153 lines
2.9 KiB
JavaScript

$(function() {
$.plot("#encode", [
{
data: encode_cauchy_good_4096,
label: "Cauchy 4KB",
points: { show: true },
lines: { show: true },
},
{
data: encode_cauchy_good_1048576,
label: "Cauchy 1MB",
points: { show: true },
lines: { show: true },
},
{
data: encode_reed_sol_van_4096,
label: "Reed Solomon 4KB",
points: { show: true },
lines: { show: true },
},
{
data: encode_reed_sol_van_1048576,
label: "Reed Solomon 1MB",
points: { show: true },
lines: { show: true },
},
], {
xaxis: {
mode: "categories",
tickLength: 0
},
}
);
$.plot("#decode", [
{
data: decode_cauchy_good_4096,
label: "Cauchy 4KB",
points: { show: true },
lines: { show: true },
},
{
data: decode_cauchy_good_1048576,
label: "Cauchy 1MB",
points: { show: true },
lines: { show: true },
},
{
data: decode_reed_sol_van_4096,
label: "Reed Solomon 4KB",
points: { show: true },
lines: { show: true },
},
{
data: decode_reed_sol_van_1048576,
label: "Reed Solomon 1MB",
points: { show: true },
lines: { show: true },
},
], {
xaxis: {
mode: "categories",
tickLength: 0
},
}
);
$.plot("#encode4KB", [
{
data: encode_cauchy_good_4096,
label: "Cauchy 4KB",
points: { show: true },
lines: { show: true },
},
{
data: encode_reed_sol_van_4096,
label: "Reed Solomon 4KB",
points: { show: true },
lines: { show: true },
},
], {
xaxis: {
mode: "categories",
tickLength: 0
},
}
);
$.plot("#decode4KB", [
{
data: decode_cauchy_good_4096,
label: "Cauchy 4KB",
points: { show: true },
lines: { show: true },
},
{
data: decode_reed_sol_van_4096,
label: "Reed Solomon 4KB",
points: { show: true },
lines: { show: true },
},
], {
xaxis: {
mode: "categories",
tickLength: 0
},
}
);
$.plot("#encode1MB", [
{
data: encode_cauchy_good_1048576,
label: "Cauchy 1MB",
points: { show: true },
lines: { show: true },
},
{
data: encode_reed_sol_van_1048576,
label: "Reed Solomon 1MB",
points: { show: true },
lines: { show: true },
},
], {
xaxis: {
mode: "categories",
tickLength: 0
},
}
);
$.plot("#decode1MB", [
{
data: decode_cauchy_good_1048576,
label: "Cauchy 1MB",
points: { show: true },
lines: { show: true },
},
{
data: decode_reed_sol_van_1048576,
label: "Reed Solomon 1MB",
points: { show: true },
lines: { show: true },
},
], {
xaxis: {
mode: "categories",
tickLength: 0
},
}
);
});