mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
8363a94a60
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>
153 lines
2.9 KiB
JavaScript
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
|
|
},
|
|
}
|
|
);
|
|
|
|
});
|