Add accurate speed test for rustup

This commit is contained in:
Mikachu2333 2025-08-08 00:13:06 +08:00 committed by GitHub
parent 1a73a31e06
commit 49cf464eb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,9 +6,12 @@
* | Mikachu2333 <mikachu.23333@zohomail.com> * | Mikachu2333 <mikachu.23333@zohomail.com>
* | * |
* Created On : <2024-10-02> * Created On : <2024-10-02>
* Last Modified : <2025-06-19> * Last Modified : <2025-08-07>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
// Size: 20MB
#define Rustup_Speed_URL_Suffix "/dist/2025-06-26/cargo-1.88.0-x86_64-unknown-illumos.tar.gz"
static SourceProvider_t pl_rust_binary_upstream = static SourceProvider_t pl_rust_binary_upstream =
{ {
def_upstream, "https://www.rust-lang.org/", def_upstream, "https://www.rust-lang.org/",
@ -16,19 +19,19 @@ static SourceProvider_t pl_rust_binary_upstream =
}; };
/** /**
* @update 2025-06-17 * @update 2025-08-07
*/ */
static Source_t pl_rust_rustup_sources[] = { static Source_t pl_rust_rustup_sources[] = {
{&pl_rust_binary_upstream, "https://static.rust-lang.org", NULL}, {&pl_rust_binary_upstream, "https://static.rust-lang.org", "https://static.rust-lang.org" Rustup_Speed_URL_Suffix},
{&MirrorZ, "https://mirrors.cernet.edu.cn/rustup", NULL}, {&MirrorZ, "https://mirrors.cernet.edu.cn/rustup", NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup", NULL}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup", "https://mirrors.tuna.tsinghua.edu.cn/rustup" Rustup_Speed_URL_Suffix},
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static", NULL}, {&Ustc, "https://mirrors.ustc.edu.cn/rust-static", "https://mirrors.ustc.edu.cn/rust-static" Rustup_Speed_URL_Suffix},
{&Nju, "https://mirror.nju.edu.cn/rustup", NULL}, {&Nju, "https://mirror.nju.edu.cn/rustup", "https://mirror.nju.edu.cn/rustup" Rustup_Speed_URL_Suffix},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static", NULL}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static", "https://mirror.sjtu.edu.cn/rust-static" Rustup_Speed_URL_Suffix},
{&Zju, "https://mirrors.zju.edu.cn/rustup", NULL}, {&Zju, "https://mirrors.zju.edu.cn/rustup", "https://mirrors.zju.edu.cn/rustup" Rustup_Speed_URL_Suffix},
{&Iscas, "https://mirror.iscas.ac.cn/rustup", NULL}, {&Iscas, "https://mirror.iscas.ac.cn/rustup", "https://mirror.iscas.ac.cn/rustup" Rustup_Speed_URL_Suffix},
{&Ali, "https://mirrors.aliyun.com/rustup", NULL}, {&Ali, "https://mirrors.aliyun.com/rustup", "https://mirrors.aliyun.com/rustup" Rustup_Speed_URL_Suffix},
{&RsProxyCN, "https://rsproxy.cn"}}; {&RsProxyCN, "https://rsproxy.cn", "https://rsproxy.cn" Rustup_Speed_URL_Suffix}};
def_sources_n(pl_rust_rustup); def_sources_n(pl_rust_rustup);