@@ -57,18 +57,18 @@ def log_big_string(lqty=100, size=256):
57
57
div_zero_two (x = 1 , y = 0 )
58
58
# after configuring logging
59
59
# use loguru to log messages
60
- logger .debug ('This is a debug message' )
61
- logger .info ('This is an info message' )
62
- logger .error ('This is an error message' )
63
- logger .warning ('This is a warning message' )
64
- logger .critical ('This is a critical message' )
60
+ logger .debug ('This is a loguru debug message' )
61
+ logger .info ('This is an loguru info message' )
62
+ logger .error ('This is an loguru error message' )
63
+ logger .warning ('This is a loguru warning message' )
64
+ logger .critical ('This is a loguru critical message' )
65
65
66
66
# will intercept all standard logging messages also
67
- logging .debug ('This is a debug message' )
68
- logging .info ('This is an info message' )
69
- logging .error ('This is an error message' )
70
- logging .warning ('This is a warning message' )
71
- logging .critical ('This is a critical message' )
67
+ logging .debug ('This is a standard logging debug message' )
68
+ logging .info ('This is an standard logging info message' )
69
+ logging .error ('This is an standard logging error message' )
70
+ logging .warning ('This is a standard logging warning message' )
71
+ logging .critical ('This is a standard logging critical message' )
72
72
73
73
74
74
def worker (wqty = 1000 , lqty = 100 , size = 256 ):
@@ -107,5 +107,5 @@ def main(wqty: int = 100, lqty: int = 10, size: int = 256, workers: int = 16, th
107
107
if __name__ == "__main__" :
108
108
from time import time
109
109
start = time ()
110
- main (wqty = 10 , lqty = 100 , size = 64 , workers = 8 , thread_test = False , process_test = True )
110
+ main (wqty = 20 , lqty = 100 , size = 64 , workers = 8 , thread_test = False , process_test = True )
111
111
print (f"Execution time: { time ()- start :.2f} seconds" )
0 commit comments