Accurate and rough measure for mirror site

This commit is contained in:
Aoran Zeng
2025-07-11 15:08:57 +08:00
parent 4fed086f7d
commit f6731adf81
13 changed files with 84 additions and 69 deletions

View File

@@ -6,11 +6,11 @@
* |
* Created On : <2025-04-15>
* Major Revision : 1
* Last Modified : <2025-04-15>
* Last Modified : <2025-07-11>
* ------------------------------------------------------------*/
static MirrorSite_t FlutterCN =
{
"cfug", "CFUG", "Flutter 社区", "https://flutter.cn/",
{NotSkip, NA, NA, "https://storage.flutter-io.cn/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz"} // 231 MB
{NotSkip, NA, NA, "https://storage.flutter-io.cn/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz", ACCURATE} // 231 MB
};

View File

@@ -6,7 +6,7 @@
* |
* Created On : <2023-08-30>
* Major Revision : 1
* Last Modified : <2024-12-18>
* Last Modified : <2025-07-11>
* ------------------------------------------------------------*/
static SourceProvider_t pl_go_upstream =
@@ -18,13 +18,13 @@ static SourceProvider_t pl_go_upstream =
static MirrorSite_t GoProxyCN =
{
"goproxy.cn", "Goproxy.cn", "Goproxy.cn (七牛云)", "https://goproxy.cn/",
{NotSkip, NA, NA, "https://goproxy.cn/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB
{NotSkip, NA, NA, "https://goproxy.cn/github.com/aws/aws-sdk-go/@v/v1.45.2.zip", ACCURATE} // 30 MB
},
GoProxyIO =
{
"goproxy.io", "GOPROXY.IO", "GOPROXY.IO", "https://goproxy.io/",
{NotSkip, NA, NA, "https://goproxy.io/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB
{NotSkip, NA, NA, "https://goproxy.io/github.com/aws/aws-sdk-go/@v/v1.45.2.zip", ACCURATE} // 30 MB
};

View File

@@ -10,7 +10,7 @@
static MirrorSite_t Api7 =
{
"api7", "api7.ai", "深圳支流科技有限公司", "https://www.apiseven.com/",
{SKIP, ToFill, ToFill, NULL}
{SKIP, ToFill, ToFill, NULL, ROUGH}
};

View File

@@ -12,14 +12,14 @@
static SourceProvider_t pl_nodejs_npm_upstream =
{
def_upstream, "https://www.npmjs.com/",
{NotSkip, NA, NA, "https://registry.npmjs.org/@tensorflow/tfjs/-/tfjs-4.22.0.tgz"}
{NotSkip, NA, NA, "https://registry.npmjs.org/@tensorflow/tfjs/-/tfjs-4.22.0.tgz", ACCURATE}
};
static MirrorSite_t NpmMirror =
{
"npmmirror", "npmmirror", "npmmirror (阿里云赞助)", "https://npmmirror.com/",
// 注意,下面这个是跳转后的地址,不确定未来会不会改变
{NotSkip, NA, NA, "https://cdn.npmmirror.com/packages/%40tensorflow/tfjs/4.22.0/tfjs-4.22.0.tgz"} // 29MB
{NotSkip, NA, NA, "https://cdn.npmmirror.com/packages/%40tensorflow/tfjs/4.22.0/tfjs-4.22.0.tgz", ACCURATE} // 29MB
};
/**

View File

@@ -10,7 +10,7 @@
static MirrorSite_t NugetOrg =
{
"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
{SKIP, ToFill, ToFill, NULL}
{SKIP, ToFill, ToFill, NULL, ROUGH}
};
/**

View File

@@ -5,19 +5,19 @@
* Contributors : Nil Null <nil@null.org>
* |
* Created On : <2023-08-29>
* Last Modified : <2024-12-18>
* Last Modified : <2025-07-11>
* ------------------------------------------------------------*/
static SourceProvider_t pl_ruby_upstream =
{
def_upstream, "https://rubygems.org",
{NotSkip, NA, NA, "https://rubygems.org/gems/nokogiri-1.15.0-java.gem"}
{NotSkip, NA, NA, "https://rubygems.org/gems/nokogiri-1.15.0-java.gem", ACCURATE}
};
static MirrorSite_t RubyChina =
{
"rubychina", "RubyChina", "Ruby China 社区", "https://gems.ruby-china.com/",
{NotSkip, NA, NA, "https://gems.ruby-china.com/rubygems/gems/nokogiri-1.15.0-java.gem"} // 9.9 MB
{NotSkip, NA, NA, "https://gems.ruby-china.com/rubygems/gems/nokogiri-1.15.0-java.gem", ACCURATE} // 9.9 MB
};
/**

View File

@@ -4,11 +4,11 @@
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* Created On : <2024-10-02>
* Last Modified : <2024-11-21>
* Last Modified : <2025-07-11>
* ------------------------------------------------------------*/
static MirrorSite_t RsProxyCN =
{
"rsproxycn", "RsProxy.cn", "字节跳动基础架构Dev Infra", "https://rsproxy.cn/",
{NotSkip, NA, NA, "https://rsproxy.cn/api/v1/crates/windows/0.58.0/download"}
{NotSkip, NA, NA, "https://rsproxy.cn/api/v1/crates/windows/0.58.0/download", ACCURATE}
};

View File

@@ -42,12 +42,14 @@
* 定义专服务于该target的镜像站该例数据为虚拟填充
*/
static MirrorSite_t
RubyMetric = {"rbmt", // chsrc set <target> rbmt
RubyMetric = {"rbmt", // 该镜像站的 code, 可以这么使用: chsrc set <target> rbmt
"RubyMetric", // 该镜像站的缩写
"RubyMetric.com", // 该镜像站的全名
"https://rubymetirc.com", // 镜像站首页
// 镜像站某个较大的可下载物的下载链接,用于测速
"https://rubymetirc.com/target/aws/aws-sdk-go/@v/v1.45.2.zip"};
"https://rubymetirc.com/target/aws/aws-sdk-go/@v/v1.45.2.zip",
ACCURATE}; // 是否为精准测速若使用间接URL来测速则填ROUGH
/**
* @update 2025-12-31

View File

@@ -13,20 +13,20 @@ static MirrorSite_t DaoCloud =
{
"daocloud", "DaoCloud","上海道客网络科技有限公司", "https://www.daocloud.io/",
// 没有找到 DaoCloud 合适的下载链接,先随便给一个,以规避 chsrc 自动测速时所有 dockerhub 镜像站都没有测速链接带来的 bug
{NotSkip, NA, NA, "https://qiniu-download-public.daocloud.io/DaoCloud_Enterprise/dce5/offline-community-v0.18.0-amd64.tar"}
{NotSkip, NA, NA, "https://qiniu-download-public.daocloud.io/DaoCloud_Enterprise/dce5/offline-community-v0.18.0-amd64.tar", ACCURATE}
},
Fit2Cloud =
{
"fit2cloud", "FIT2CLOUD", "杭州飞致云信息科技有限公司", "https://www.fit2cloud.com/",
{SKIP, ToFill, ToFill, NULL}
{SKIP, ToFill, ToFill, NULL, ROUGH}
},
Huecker =
{
"huecker", "(Russia) Huecker", "俄罗斯 Huecker.io", "https://huecker.io/",
// 同 DaoCloud没有合适的下载链接先随便给一个以避免 bug
{NotSkip, NA, NA, "https://huecker.io/en/use.html"}
{NotSkip, NA, NA, "https://huecker.io/en/use.html", ROUGH}
};
/**

View File

@@ -10,7 +10,7 @@
static MirrorSite_t EmacsChina =
{
"emacschina", "EmacsChina", "Emacs China 社区", "https://elpamirror.emacs-china.org/",
{SKIP, ToFill, ToFill, NULL}
{SKIP, ToFill, ToFill, NULL, ROUGH}
};
/**