大家在国内 ping gist.github.com 的延迟是多少?

2012-05-15 03:40:07 +08:00
 Livid
貌似这个东西在国内打开很慢,如果嵌入到 V2EX 的主题中的话,把页面都会卡住很长时间。

或许可以用什么办法优化一下。
8842 次点击
所在节点    Velocity
30 条回复
fanzeyi
2012-05-15 03:41:40 +08:00
$ sudo ping -fqc 1000 gist.github.com
パスワード:
PING gist.github.com (207.97.227.243) 56(84) bytes of data.

--- gist.github.com ping statistics ---
1000 packets transmitted, 916 received, 8% packet loss, time 13447ms
rtt min/avg/max/mdev = 277.185/278.679/291.369/0.997 ms, pipe 22, ipg/ewma 13.460/278.246 ms
liuhang0077
2012-05-15 03:42:28 +08:00
电信8M 平均值 500ms 左右 最低 353ms 最高 523ms
Livid
2012-05-15 03:42:28 +08:00
What, total lost?
fanzeyi
2012-05-15 03:43:17 +08:00
优化的话.. 只想到一个方法: 用 js 来替换 gist link 为代码.. 这样至少不会卡住页面.
Livid
2012-05-15 03:43:49 +08:00
那么大家 ping 199.91.73.222 是多少呢?
013231
2012-05-15 03:44:21 +08:00
電信
--- gist.github.com ping statistics ---
20 packets transmitted, 20 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 246.697/247.229/247.939/0.419 ms
fanzeyi
2012-05-15 03:44:39 +08:00
--- 199.91.73.222 ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 13552ms
rtt min/avg/max/mdev = 177.120/178.340/218.978/2.375 ms, pipe 17, ipg/ewma 13.565/178.205 ms
liuhang0077
2012-05-15 03:48:46 +08:00
测试一下好了。
https://gist.github.com/2696119
liuhang0077
2012-05-15 03:50:30 +08:00
在失败就不弄了。。。
git://gist.github.com/2696119.git
liuhang0077
2012-05-15 03:52:08 +08:00
好吧我贼心不死。。。 在实验一条睡觉了。。
<script src="https://gist.github.com/2696119.js"> </script>
fanzeyi
2012-05-15 03:52:17 +08:00
@liuhang0077 %s/https/http
fanzeyi
2012-05-15 03:54:45 +08:00
刚刚发现.. 似乎 PB3 的 Gist 没有 PB2 样式优化了, 是忘记了还是故意去掉了? @Livid

https://github.com/livid/v2ex/blob/master/static/css/desktop/style.css#L714
turing
2012-05-15 03:55:42 +08:00
PING gist.github.com (207.97.227.243): 56 data bytes
64 bytes from 207.97.227.243: icmp_seq=0 ttl=42 time=226.824 ms
64 bytes from 207.97.227.243: icmp_seq=1 ttl=42 time=228.088 ms
64 bytes from 207.97.227.243: icmp_seq=2 ttl=42 time=226.749 ms
64 bytes from 207.97.227.243: icmp_seq=3 ttl=42 time=227.400 ms
64 bytes from 207.97.227.243: icmp_seq=4 ttl=42 time=226.742 ms

--- gist.github.com ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 226.742/227.161/228.088/0.524 ms
arno
2012-05-15 03:56:28 +08:00
@livid 我也买了一个linode 不过怎么设置LAMP啊 我想一个空间可以分给几个站用?~
turing
2012-05-15 03:56:54 +08:00
PING 199.91.73.222 (199.91.73.222): 56 data bytes
64 bytes from 199.91.73.222: icmp_seq=0 ttl=46 time=171.840 ms
64 bytes from 199.91.73.222: icmp_seq=1 ttl=46 time=171.701 ms
64 bytes from 199.91.73.222: icmp_seq=2 ttl=46 time=171.573 ms
64 bytes from 199.91.73.222: icmp_seq=3 ttl=46 time=171.505 ms
64 bytes from 199.91.73.222: icmp_seq=4 ttl=46 time=171.680 ms

--- 199.91.73.222 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 171.505/171.660/171.840/0.115 ms
liuhang0077
2012-05-15 03:57:56 +08:00
@fanzeyi 原来不加s就好了。。。 在测试下
http://gist.github.com/2696119
Livid
2012-05-15 04:53:42 +08:00
@fanzeyi 是还没来得及加入。

现在加。
Livid
2012-05-15 04:54:12 +08:00
话说在美国 gist 嵌入页面是秒开⋯⋯
Livid
2012-05-15 05:32:56 +08:00
刚刚尝试了一下,https 的服务用 nginx 做反向代理会有很多问题⋯⋯
Livid
2012-05-15 05:40:24 +08:00
@fanzeyi Added in.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/35958

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX