Skip to content

Update network throttling to simulate more realistic network conditions#2238

Merged
paulirish merged 4 commits intoGoogleChrome:masterfrom
wwwillchen:adjust-network-latency
May 16, 2017
Merged

Update network throttling to simulate more realistic network conditions#2238
paulirish merged 4 commits intoGoogleChrome:masterfrom
wwwillchen:adjust-network-latency

Conversation

@wwwillchen
Copy link
Contributor

Based on the work in #2183 which I'll land as a follow-up.


const TARGET_LATENCY = 150; // 150ms
const TARGET_DOWNLOAD_THROUGHPUT = Math.floor(1.6 * 1024 * 1024 / 8); // 1.6Mbps
const TARGET_UPLOAD_THROUGHPUT = Math.floor(750 * 1024 / 8 * THROUGHPUT_FACTOR); // 750Kbps
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the throughput factor included in the target here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops - fixed.


/**
* Adjustments needed for DevTools network throttling to simulate
* more realistic network throttling conditions
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we link off to any explanations or references?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a link to the crbug (not sure whether to make the analysis doc public yet)

Copy link
Contributor Author

@wwwillchen wwwillchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Updated.


const TARGET_LATENCY = 150; // 150ms
const TARGET_DOWNLOAD_THROUGHPUT = Math.floor(1.6 * 1024 * 1024 / 8); // 1.6Mbps
const TARGET_UPLOAD_THROUGHPUT = Math.floor(750 * 1024 / 8 * THROUGHPUT_FACTOR); // 750Kbps
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops - fixed.


/**
* Adjustments needed for DevTools network throttling to simulate
* more realistic network throttling conditions
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a link to the crbug (not sure whether to make the analysis doc public yet)

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! get ready for some really slow runs :)

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

targetDownloadThroughput etc arent used right now but otherwise. sgtm.

lets land now so we can see how sloooooooow this is!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants