RxJava 批量计算网络连接速度

date
slug
RxJava-calc-connection-cost-batch
status
Published
tags
Android
RxJava
summary
1.计算连接耗时 private static long calcConnCost(String url) { long start = new Date().getTime(); long end = start; try { HttpURLConnection conn = (HttpURLCo...
type
Post
1.计算连接耗时
2.异步计算
3.请求十次,求平均值
4.一组Url求平均值
5.多组Url分别求平均值
6.多组Url分别求平均值并保留host
7.拆分之后可读性更好一些...
notion image

© likaci 2013 - 2024