mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-28 17:25:20 +00:00
Update Nlbench_beta.sh
This commit is contained in:
parent
ebf7e3df30
commit
31ca394378
@ -473,9 +473,11 @@ generate_markdown_output() {
|
|||||||
local final_output_file="${base_output_file}.md"
|
local final_output_file="${base_output_file}.md"
|
||||||
local sections=("YABS" "Geekbench5" "融合怪" "IP质量" "流媒体" "响应" "多线程测速" "单线程测速" "iperf3" "回程路由")
|
local sections=("YABS" "Geekbench5" "融合怪" "IP质量" "流媒体" "响应" "多线程测速" "单线程测速" "iperf3" "回程路由")
|
||||||
local file_suffixes=("yabs" "gb5" "fusion" "ip_quality" "streaming" "response" "multi_thread" "single_thread" "iperf3" "route")
|
local file_suffixes=("yabs" "gb5" "fusion" "ip_quality" "streaming" "response" "multi_thread" "single_thread" "iperf3" "route")
|
||||||
|
local empty_tabs=("去程路由" "Ping.pe" "哪吒 ICMP" "其他")
|
||||||
|
|
||||||
echo "[tabs]" > "$final_output_file"
|
echo "[tabs]" > "$final_output_file"
|
||||||
|
|
||||||
|
# 输出有内容的标签
|
||||||
for i in "${!sections[@]}"; do
|
for i in "${!sections[@]}"; do
|
||||||
section="${sections[$i]}"
|
section="${sections[$i]}"
|
||||||
suffix="${file_suffixes[$i]}"
|
suffix="${file_suffixes[$i]}"
|
||||||
@ -489,6 +491,12 @@ generate_markdown_output() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# 添加保留的空白标签
|
||||||
|
for tab in "${empty_tabs[@]}"; do
|
||||||
|
echo "[tab=\"$tab\"]" >> "$final_output_file"
|
||||||
|
echo "[/tab]" >> "$final_output_file"
|
||||||
|
done
|
||||||
|
|
||||||
echo "[/tabs]" >> "$final_output_file"
|
echo "[/tabs]" >> "$final_output_file"
|
||||||
|
|
||||||
echo "所有测试完成,结果已保存在 $final_output_file 中。"
|
echo "所有测试完成,结果已保存在 $final_output_file 中。"
|
||||||
@ -496,6 +504,7 @@ generate_markdown_output() {
|
|||||||
clear
|
clear
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# 执行全部脚本
|
# 执行全部脚本
|
||||||
run_all_scripts() {
|
run_all_scripts() {
|
||||||
local base_output_file="NLvps_results_$(date +%Y%m%d_%H%M%S)"
|
local base_output_file="NLvps_results_$(date +%Y%m%d_%H%M%S)"
|
||||||
|
Loading…
Reference in New Issue
Block a user