Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/report-template/content/js/dashboard.js.fmkr
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function summaryTableHeader(header) {
cell = document.createElement('th');
cell.setAttribute("data-sorter", false);
cell.colSpan = 7;
cell.innerHTML = "Response Times (ms)";
cell.innerHTML = "Response Times (${jmeter_reportgenerator_ms_ns})";
newRow.appendChild(cell);

cell = document.createElement('th');
Expand Down
37 changes: 18 additions & 19 deletions bin/report-template/content/js/graph.js.fmkr
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var responseTimePercentilesInfos = {
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Percentile value in ms",
axisLabel: "Percentile value in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -70,7 +70,7 @@ var responseTimePercentilesInfos = {
},
tooltip: true,
tooltipOpts: {
content: "%s : %x.2 percentile was %y ms"
content: "%s : %x.2 percentile was %y ${jmeter_reportgenerator_ms_ns}"
},
selection: { mode: "xy" },
};
Expand Down Expand Up @@ -127,7 +127,7 @@ var responseTimeDistributionInfos = {
container: '#legendResponseTimeDistribution'
},
xaxis:{
axisLabel: "Response times in ms",
axisLabel: "Response times in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -151,7 +151,7 @@ var responseTimeDistributionInfos = {
tooltip: true,
tooltipOpts: {
content: function(label, xval, yval, flotItem){
return yval + " responses for " + label + " were between " + xval + " and " + (xval + granularity) + " ms";
return yval + " responses for " + label + " were between " + xval + " and " + (xval + granularity) + " ${jmeter_reportgenerator_ms_ns}";
}
}
};
Expand Down Expand Up @@ -355,7 +355,7 @@ var timeVsThreadsInfos = {
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Average response times in ms",
axisLabel: "Average response times in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -370,7 +370,7 @@ var timeVsThreadsInfos = {
},
tooltip: true,
tooltipOpts: {
content: "%s: At %x.2 active threads, Average response time was %y.2 ms"
content: "%s: At %x.2 active threads, Average response time was %y.2 ${jmeter_reportgenerator_ms_ns}"
}
};
},
Expand Down Expand Up @@ -505,7 +505,7 @@ var responseTimesOverTimeInfos = {
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Average response time in ms",
axisLabel: "Average response time in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -525,7 +525,7 @@ var responseTimesOverTimeInfos = {
},
tooltip: true,
tooltipOpts: {
content: "%s : at %x Average response time was %y ms"
content: "%s : at %x Average response time was %y ${jmeter_reportgenerator_ms_ns}"
}
};
},
Expand Down Expand Up @@ -586,7 +586,7 @@ var latenciesOverTimeInfos = {
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Average response latencies in ms",
axisLabel: "Average response latencies in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -606,7 +606,7 @@ var latenciesOverTimeInfos = {
},
tooltip: true,
tooltipOpts: {
content: "%s : at %x Average latency was %y ms"
content: "%s : at %x Average latency was %y ${jmeter_reportgenerator_ms_ns}"
}
};
},
Expand Down Expand Up @@ -667,7 +667,7 @@ var connectTimeOverTimeInfos = {
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Average Connect Time in ms",
axisLabel: "Average Connect Time in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -687,7 +687,7 @@ var connectTimeOverTimeInfos = {
},
tooltip: true,
tooltipOpts: {
content: "%s : at %x Average connect time was %y ms"
content: "%s : at %x Average connect time was %y ${jmeter_reportgenerator_ms_ns}"
}
};
},
Expand Down Expand Up @@ -749,7 +749,7 @@ var responseTimePercentilesOverTimeInfos = {
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Response Time in ms",
axisLabel: "Response Time in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -769,7 +769,7 @@ var responseTimePercentilesOverTimeInfos = {
},
tooltip: true,
tooltipOpts: {
content: "%s : at %x Response time was %y ms"
content: "%s : at %x Response time was %y ${jmeter_reportgenerator_ms_ns}"
}
};
},
Expand Down Expand Up @@ -825,7 +825,7 @@ var responseTimeVsRequestInfos = {
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Median Response Time in ms",
axisLabel: "Median Response Time in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -844,7 +844,7 @@ var responseTimeVsRequestInfos = {
},
tooltip: true,
tooltipOpts: {
content: "%s : Median response time at %x req/s was %y ms"
content: "%s : Median response time at %x req/s was %y ${jmeter_reportgenerator_ms_ns}"
},
colors: ["#9ACD32", "#FF6347"]
};
Expand Down Expand Up @@ -899,7 +899,7 @@ var latenciesVsRequestInfos = {
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Median Latency in ms",
axisLabel: "Median Latency in ${jmeter_reportgenerator_ms_ns}",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
Expand All @@ -914,7 +914,7 @@ var latenciesVsRequestInfos = {
},
tooltip: true,
tooltipOpts: {
content: "%s : Median Latency time at %x req/s was %y ms"
content: "%s : Median Latency time at %x req/s was %y ${jmeter_reportgenerator_ms_ns}"
},
colors: ["#9ACD32", "#FF6347"]
};
Expand Down Expand Up @@ -1413,4 +1413,3 @@ function toggleAll(id, checked){
});
}
}

3 changes: 3 additions & 0 deletions bin/reportgenerator.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
# Reporting configuration
#---------------------------------------------------------------------------

#The time unit in reports and visualizers: ms(millisecond) / ns(nanosecond)
jmeter.reportgenerator.ms_ns=ms

# Sets the satisfaction threshold for the APDEX calculation (in milliseconds).
#jmeter.reportgenerator.apdex_satisfied_threshold=500

Expand Down
50 changes: 50 additions & 0 deletions bin/testfiles/ns.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"JR-KO" : {
"transaction" : "JR-KO",
"sampleCount" : 3,
"errorCount" : 3,
"errorPct" : 100.0,
"meanResTime" : 1.9966666666666666E8,
"medianResTime" : 1.7E8,
"minResTime" : 1.0E8,
"maxResTime" : 3.29E8,
"pct1ResTime" : 3.29E8,
"pct2ResTime" : 3.29E8,
"pct3ResTime" : 3.29E8,
"throughput" : 0.07922465471254654,
"receivedKBytesPerSec" : 0.0015473565373544248,
"sentKBytesPerSec" : 6.1894261494177E-4
},
"Total" : {
"transaction" : "Total",
"sampleCount" : 255,
"errorCount" : 3,
"errorPct" : 1.1764706,
"meanResTime" : 2.354745098039215E8,
"medianResTime" : 2.32E8,
"minResTime" : 1.0E8,
"maxResTime" : 3.53E8,
"pct1ResTime" : 3.37E8,
"pct2ResTime" : 3.392E8,
"pct3ResTime" : 3.53E8,
"throughput" : 4.2369361136495804,
"receivedKBytesPerSec" : 0.07457474869153444,
"sentKBytesPerSec" : 0.03310106338788735
},
"JR-OK" : {
"transaction" : "JR-OK",
"sampleCount" : 252,
"errorCount" : 0,
"errorPct" : 0.0,
"meanResTime" : 2.359007936507938E8,
"medianResTime" : 2.32E8,
"minResTime" : 1.01E8,
"maxResTime" : 3.53E8,
"pct1ResTime" : 3.37E8,
"pct2ResTime" : 3.3935E8,
"pct3ResTime" : 3.53E8,
"throughput" : 4.187089806430174,
"receivedKBytesPerSec" : 0.0736011880036554,
"sentKBytesPerSec" : 0.03271163911273573
}
}
Loading
Loading