3838
3939def is_connected ():
4040 try :
41- response = requests .get ("https://www.google.com " , timeout = 5 )
41+ response = requests .get ("https://corebench.me " , timeout = 5 )
4242 if response .status_code == 200 :
4343 return True
4444
@@ -307,7 +307,7 @@ def distroColour():
307307 quit ()
308308
309309 #UPDATE THIS WITH EVERY VERSION
310- version = "1.5.1 "
310+ version = "1.5.2 "
311311 #UPDATE THIS WITH EVERY VERSION
312312
313313 endLoad = True
@@ -894,7 +894,7 @@ def fp_benchmark(data_chunk):
894894
895895 return total
896896
897- def full_load_benchmark (func , data , num_cores , iterations = 5 ):
897+ def full_load_benchmark (func , data , num_cores , iterations = 50 ):
898898 times = []
899899 chunk_size = len (data ) // num_cores
900900
@@ -908,6 +908,7 @@ def full_load_benchmark(func, data, num_cores, iterations=5):
908908 #]
909909
910910 for _ in range (iterations ):
911+ print (f"[{ _ + 1 } ] { colours .red ()} Iteration START{ colours .reset ()} ({ int (round (((_ + 1 )/ iterations )* 100 ))} %)" )
911912 start_time = time .perf_counter ()
912913
913914 with multiprocessing .Pool (processes = num_cores ) as pool :
@@ -919,12 +920,12 @@ def full_load_benchmark(func, data, num_cores, iterations=5):
919920
920921 return sum (times ) / len (times )
921922
922- def run_full_load_benchmark (num_cores , data , iterations = 5 ):
923+ def run_full_load_benchmark (num_cores , data ):
923924 chunk_size = len (data ) // num_cores
924925 chunks = [data [i * chunk_size :(i + 1 ) * chunk_size ] for i in range (num_cores )]
925926
926927 with multiprocessing .Pool (processes = num_cores ) as pool :
927- avg_time = full_load_benchmark (fp_benchmark , data , iterations )
928+ avg_time = full_load_benchmark (fp_benchmark , data , num_cores )
928929 return avg_time
929930
930931def full_load_intermission (gflops = 0 ):
@@ -950,14 +951,17 @@ def full_load_intermission(gflops=0):
950951 time .sleep (1 )
951952
952953 print ("------" )
953- print (f"Currently executing the { colours .red ()} Full Load Test{ colours .reset ()} , this shouldn't take long..." )
954+ print (f"Currently executing the { colours .red ()} Full Load Test{ colours .reset ()} , this may take a while..." )
955+ print ("---" )
954956
955957 data = list (range (5_000_000 ))
956958 num_cores = multiprocessing .cpu_count ()
957959 avg_time = run_full_load_benchmark (num_cores , data )
958960
959961 score = round ((2 / avg_time ) * 1000 / math .log (avg_time + math .e ))
960962
963+ print ("---" )
964+
961965 print (f"Your system scored { colours .red ()} { score } { colours .reset ()} points!" )
962966 print ("------" )
963967 print (f"{ colours .green ()} Full Load Test complete!{ colours .reset ()} " )
0 commit comments