哪种引用 S3 文件的方式更好/更快?

发布于 2024-11-05 13:25:42 字数 190 浏览 4 评论 0原文

这种寻址 S3 文件的方法是否更好/更可靠/更快?

http://abcinfo.s3.amazonaws.com/something.doc

或者这样:

http://s3.amazonaws.com/abcinfo/something.doc

Is this method of addressing S3 files better / more reliable / faster?

http://abcinfo.s3.amazonaws.com/something.doc

or this way:

http://s3.amazonaws.com/abcinfo/something.doc

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

む无字情书 2024-11-12 13:25:42

令人着迷的发现!

http://abcinfo.s3.amazonaws.com/something.doc

始终比其他参考机制慢!

使用的文件: 长度:3716075 (3.5M) [video/mp4]

wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
7.0s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.2s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.7s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.2s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.1s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.9s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.2s

http://myfolder 机制中花费的平均时间:

8.95 seconds

花费的平均时间在 /myfolder/ 机制中:

2.166666667 seconds

即,前者至少慢四倍!

Fascinating discovery!

http://abcinfo.s3.amazonaws.com/something.doc

Is CONSISTENTLY slower than the other reference mechanism!

File used: Length: 3716075 (3.5M) [video/mp4]

wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
7.0s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.2s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.7s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.2s
wget http://s3.amazonaws.com/myfolder/mytestfile.mp4
2.1s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.9s
wget http://myfolder.s3.amazonaws.com/mytestfile.mp4
9.2s

Average time taken in http://myfolder mechanism:

8.95 seconds

Average time taken in /myfolder/ mechanism:

2.166666667 seconds

ie, the former is at least FOUR times as slower!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文