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

时间:2011-05-06 06:30:06

标签: performance amazon-s3 dns domain-name

这种解决S3文件的方法更好/更可靠/更快吗?

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

或者这样:

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

1 个答案:

答案 0 :(得分:3)

引人入胜的发现!

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 / mechanism所用的平均时间:

2.166666667 seconds

即,前者至少要慢四倍!