本帖最后由 好鸭 于 2022-3-4 22:11 编辑
yabs里用的是geekbench官方的下载链接,国内鸡连接特别慢
这里传了到了国内下载快的地方,阿里云小程序云的存储(OSS)
https://cdn.geekbench.com/Geekbench-5.4.4-Linux.tar.gz ⬇ https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/c4f91db1-07ba-4a98-9549-4d2bad7b1280.gz
https://cdn.geekbench.com/Geekbench-5.4.4-LinuxARMPreview.tar.gz 文件太大,分卷压缩了,使用tar -czvf – Geekbench-5.4.4-LinuxARMPreview|split -b 60m -d – Geekbench-5.4.4-LinuxARMPreview.tar.gz生成 ⬇ https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/707faece-87ed-434e-b8c4-5a5c61863971.gz00 https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/f57e8acc-09dd-42f6-b161-333c615ab012.gz01
https://cdn.geekbench.com/Geekbench-4.4.4-Linux.tar.gz ⬇ https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/8a4a8a21-edb9-43cf-8b04-abdf65bdc9ad.gz
sed替换
- sed "s|https://cdn.geekbench.com/Geekbench-5.4.4-Linux.tar.gz|https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/c4f91db1-07ba-4a98-9549-4d2bad7b1280.gz|"
-
- sed "s|curl -s https://cdn.geekbench.com/Geekbench-5.4.4-LinuxARMPreview.tar.gz|curl -s https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/707faece-87ed-434e-b8c4-5a5c61863971.gz00 > /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz && curl -s https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/f57e8acc-09dd-42f6-b161-333c615ab012.gz01 >> /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz && cat /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz|"
-
- sed "s|https://cdn.geekbench.com/Geekbench-4.4.4-Linux.tar.gz|https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/8a4a8a21-edb9-43cf-8b04-abdf65bdc9ad.gz|"
复制代码
看起来乱七八糟的
但是基于原文件sed改,而不是另存一个脚本文件,安全,不容易加料
yabs直接用法(-i是网络测试,-f是fio测试,这个是只跑CPU,也就是只跑geekbench)
- curl -sL yabs.sh|bash -s — -if
复制代码
替换后的 x86
- curl -sL yabs.sh|sed "s|https://cdn.geekbench.com/Geekbench-5.4.4-Linux.tar.gz|https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/c4f91db1-07ba-4a98-9549-4d2bad7b1280.gz|"|bash -s — -if
复制代码
arm
- curl -sL yabs.sh|sed "s|curl -s https://cdn.geekbench.com/Geekbench-5.4.4-LinuxARMPreview.tar.gz|curl -s https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/707faece-87ed-434e-b8c4-5a5c61863971.gz00 > /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz && curl -s https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/f57e8acc-09dd-42f6-b161-333c615ab012.gz01 >> /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz && cat /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz|"|bash -s — -if
复制代码
geekbench4
- curl -sL yabs.sh|sed "s|https://cdn.geekbench.com/Geekbench-4.4.4-Linux.tar.gz|https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/8a4a8a21-edb9-43cf-8b04-abdf65bdc9ad.gz|"|bash -s — -if
复制代码
全部一起替换
- curl -sL yabs.sh|sed "s|https://cdn.geekbench.com/Geekbench-5.4.4-Linux.tar.gz|https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/c4f91db1-07ba-4a98-9549-4d2bad7b1280.gz|"|sed "s|curl -s https://cdn.geekbench.com/Geekbench-5.4.4-LinuxARMPreview.tar.gz|curl -s https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/707faece-87ed-434e-b8c4-5a5c61863971.gz00 > /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz && curl -s https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/f57e8acc-09dd-42f6-b161-333c615ab012.gz01 >> /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz && cat /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz|"|sed "s|https://cdn.geekbench.com/Geekbench-4.4.4-Linux.tar.gz|https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/8a4a8a21-edb9-43cf-8b04-abdf65bdc9ad.gz|"|bash -s — -if
复制代码
以上看起来乱七八糟的,反正能用就是了
也有一个很简单的,就是把geekbench的下载链接反代一下,让国内鸡下载不那么慢,就只需要替换cdn.geekbench.com这个域名了,简单多了,不过速度应该还是没这么快的
再然后呢,我把全部链接替换的脚本也传了一下 https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/9ad7aa12-319d-4774-bf75-a9a71d561f19.sh 里面的内容是 curl -sL https://cdn.jsdelivr.net/gh/masonr/[email protected]/yabs.sh|sed "s|https://cdn.geekbench.com/Geekbench-5.4.4-Linux.tar.gz|https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/c4f91db1-07ba-4a98-9549-4d2bad7b1280.gz|"|sed "s|curl -s https://cdn.geekbench.com/Geekbench-5.4.4-LinuxARMPreview.tar.gz|curl -s https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/707faece-87ed-434e-b8c4-5a5c61863971.gz00 > /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz && curl -s https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/f57e8acc-09dd-42f6-b161-333c615ab012.gz01 >> /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz && cat /tmp/Geekbench-5.4.4-LinuxARMPreview.tar.gz|"|sed "s|https://cdn.geekbench.com/Geekbench-4.4.4-Linux.tar.gz|https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/8a4a8a21-edb9-43cf-8b04-abdf65bdc9ad.gz|"
也就是,用法从
- curl -sL yabs.sh|bash -s — -if
- 或jsdelivr加速的
- curl -sL https://cdn.jsdelivr.net/gh/masonr/[email protected]/yabs.sh|bash -s — -if
复制代码
变成
- curl -sL https://bsppub.oss-cn-shanghai.aliyuncs.com/VKCEYUGU-ab498c51-8871-421b-8e23-a43eaa306dff/9ad7aa12-319d-4774-bf75-a9a71d561f19.sh|bash -s — -if
复制代码
直接用上面这个就行了
|