gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 02:49:37 24 4
gpt4 key购买 nike

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

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

或者这样:
http://s3.amazonaws.com/abcinfo/something.doc

最佳答案

迷人的发现!

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

即,前者至少慢四倍!

关于performance - 哪种引用 S3 文件的方式更好/更快?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5907622/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com