Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored stats code and display median as well as 95% percentile response times in web UI's charts #549

Merged
merged 18 commits into from
Sep 19, 2017
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
c1c07e3
Refactored stats code to track the total request stats in it’s own se…
heyman Feb 22, 2017
3f1e623
Removed full_request_history argument from StatsEntry.extend(), since…
heyman Feb 22, 2017
9d4d99f
Merge branch 'master' into total-stats-entry
heyman Mar 8, 2017
710f193
Added missing import
heyman Mar 13, 2017
6c57151
Added support for caching the StatsEntry.response_times dict every se…
heyman Mar 13, 2017
c4f4233
Changed the Response time chart to show the current median response t…
heyman Mar 13, 2017
337a9ce
Merge branch 'master' into total-stats-entry
heyman Sep 15, 2017
06d822b
Use the cached response times to calculate a *diff* which represents …
heyman Sep 15, 2017
c4be073
Merge branch 'master' into total-stats-entry
heyman Sep 16, 2017
fd8afe1
Don’t include response times with zero requests when creating a diff …
heyman Sep 16, 2017
db64571
Add an empty entry to the StatsEntry.response_times_cache when initia…
heyman Sep 16, 2017
bbdbbec
Added sleep(0) to the mocked_send method in order to force greenlet s…
heyman Sep 16, 2017
82dc8b8
Store cache entries of the RequestStats.total’s response_times dict, …
heyman Sep 16, 2017
d905294
Removed a bunch of sleep(0) that’s no longer needed since we do it di…
heyman Sep 16, 2017
4733dc4
Merge branch 'master' into total-stats-entry
heyman Sep 19, 2017
1e84d2f
Removed old, commented out code
heyman Sep 19, 2017
6dac49f
Removed unnecessary parentheses
heyman Sep 19, 2017
9cc1456
Made the windows size/resolution of the current response time percent…
heyman Sep 19, 2017
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
4 changes: 2 additions & 2 deletions locust/static/locust.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $(".stats_label").click(function(event) {

// init charts
var rpsChart = new LocustLineChart($(".charts-container"), "Total Requests per Second", ["RPS"], "reqs/s");
var responseTimeChart = new LocustLineChart($(".charts-container"), "Average Response Time", ["Average Response Time"], "ms");
var responseTimeChart = new LocustLineChart($(".charts-container"), "Response Times", ["Median Response Time", "95% percentile"], "ms");
var usersChart = new LocustLineChart($(".charts-container"), "Number of Users", ["Users"], "users");

function updateStats() {
Expand Down Expand Up @@ -149,7 +149,7 @@ function updateStats() {
var total = report.stats[report.stats.length-1];
// update charts
rpsChart.addValue([total.current_rps]);
responseTimeChart.addValue([total.avg_response_time]);
responseTimeChart.addValue([report.current_response_time_percentile_50, report.current_response_time_percentile_95]);
usersChart.addValue([report.user_count]);
}

Expand Down
2 changes: 1 addition & 1 deletion locust/static/vintage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
log('ECharts is not Loaded');
return;
}
var colorPalette = ['#00ca5a','#919e8b', '#d7ab82', '#6e7074','#61a0a8','#efa18d', '#787464', '#cc7e63', '#724e58', '#4b565b'];
var colorPalette = ['#00ca5a','#ffca5a', '#d7ab82', '#6e7074','#61a0a8','#efa18d', '#787464', '#cc7e63', '#724e58', '#4b565b'];
echarts.registerTheme('vintage', {
color: colorPalette,
backgroundColor: '#132b21',
Expand Down
Loading