mirror of
				https://github.com/teddysun/across.git
				synced 2025-10-31 08:45:36 +08:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			0a5d50b537
			...
			70f8bd140d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 70f8bd140d | ||
|  | 28e7865afb | 
							
								
								
									
										14
									
								
								bench.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								bench.sh
									
									
									
									
									
								
							| @@ -235,7 +235,7 @@ print_intro() { | ||||
| # Get System information | ||||
| get_system_info() { | ||||
|     cname=$(awk -F: '/model name/ {name=$2} END {print name}' /proc/cpuinfo | sed 's/^[ \t]*//;s/[ \t]*$//') | ||||
|     cores=$(awk -F: '/processor/ {core++} END {print core}' /proc/cpuinfo) | ||||
|     cores=$(awk -F: '/^processor/ {core++} END {print core}' /proc/cpuinfo) | ||||
|     freq=$(awk -F'[ :]' '/cpu MHz/ {print $4;exit}' /proc/cpuinfo) | ||||
|     ccache=$(awk -F: '/cache size/ {cache=$2} END {print cache}' /proc/cpuinfo | sed 's/^[ \t]*//;s/[ \t]*$//') | ||||
|     cpu_aes=$(grep -i 'aes' /proc/cpuinfo) | ||||
| @@ -308,14 +308,14 @@ print_system_info() { | ||||
|         echo " CPU Cache          : $(_blue "$ccache")" | ||||
|     fi | ||||
|     if [ -n "$cpu_aes" ]; then | ||||
|         echo " AES-NI             : $(_green "Enabled")" | ||||
|         echo " AES-NI             : $(_green "\xe2\x9c\x93 Enabled")" | ||||
|     else | ||||
|         echo " AES-NI             : $(_red "Disabled")" | ||||
|         echo " AES-NI             : $(_red "\xe2\x9c\x97 Disabled")" | ||||
|     fi | ||||
|     if [ -n "$cpu_virt" ]; then | ||||
|         echo " VM-x/AMD-V         : $(_green "Enabled")" | ||||
|         echo " VM-x/AMD-V         : $(_green "\xe2\x9c\x93 Enabled")" | ||||
|     else | ||||
|         echo " VM-x/AMD-V         : $(_red "Disabled")" | ||||
|         echo " VM-x/AMD-V         : $(_red "\xe2\x9c\x97 Disabled")" | ||||
|     fi | ||||
|     echo " Total Disk         : $(_yellow "$disk_total_size") $(_blue "($disk_used_size Used)")" | ||||
|     echo " Total Mem          : $(_yellow "$tram") $(_blue "($uram Used)")" | ||||
| @@ -384,8 +384,8 @@ ipv6_check=$((ping -6 -c 1 -W 4 ipv6.google.com >/dev/null 2>&1 && echo true) || | ||||
| if [[ -z "$ipv4_check" && -z "$ipv6_check" ]]; then | ||||
|     _yellow "Warning: Both IPv4 and IPv6 connectivity were not detected.\n" | ||||
| fi | ||||
| [[ -z "$ipv4_check" ]] && online="$(_red "Offline")" || online="$(_green "Online")" | ||||
| [[ -z "$ipv6_check" ]] && online+=" / $(_red "Offline")" || online+=" / $(_green "Online")" | ||||
| [[ -z "$ipv4_check" ]] && online="$(_red "\xe2\x9c\x97 Offline")" || online="$(_green "\xe2\x9c\x93 Online")" | ||||
| [[ -z "$ipv6_check" ]] && online+=" / $(_red "\xe2\x9c\x97 Offline")" || online+=" / $(_green "\xe2\x9c\x93 Online")" | ||||
| start_time=$(date +%s) | ||||
| get_system_info | ||||
| check_virt | ||||
|   | ||||
		Reference in New Issue
	
	Block a user