@@ -56,7 +56,6 @@ def on_ws_connected(self, transport: WSTransport):
5656 self ._transport .send (WSMsgType .BINARY , msg )
5757
5858 def on_ws_frame (self , transport : WSTransport , frame : WSFrame ):
59- global result
6059 self ._cnt += 1
6160
6261 if time () - self ._start_time >= duration :
@@ -130,7 +129,6 @@ async def aiohttp_main(url: str, data: bytes, duration: int, ssl_context):
130129
131130
132131def run_for_websockets_library (plain_url , ssl_url , ssl_context , msg , duration ):
133- global NAMES , RPS
134132 _ , rps = asyncio .run (websockets_main (plain_url , msg , duration , None ))
135133 RPS ["plain" ].append (rps )
136134 name , rps = asyncio .run (websockets_main (ssl_url , msg , duration , ssl_context ))
@@ -139,7 +137,6 @@ def run_for_websockets_library(plain_url, ssl_url, ssl_context, msg, duration):
139137
140138
141139def run_for_aiohttp_library (plain_url , ssl_url , ssl_context , msg , duration ):
142- global NAMES , RPS
143140 _ , rps = asyncio .run (aiohttp_main (plain_url , msg , duration , None ))
144141 RPS ["plain" ].append (rps )
145142 name , rps = asyncio .run (aiohttp_main (ssl_url , msg , duration , ssl_context ))
@@ -148,7 +145,6 @@ def run_for_aiohttp_library(plain_url, ssl_url, ssl_context, msg, duration):
148145
149146
150147def run_picows_client (plain_url , ssl_url , ssl_context , msg , duration ):
151- global NAMES , RPS
152148 _ , rps = asyncio .run (picows_main (plain_url , msg , duration , None ))
153149 RPS ["plain" ].append (rps )
154150 name , rps = asyncio .run (picows_main (ssl_url , msg , duration , ssl_context ))
@@ -157,22 +153,18 @@ def run_picows_client(plain_url, ssl_url, ssl_context, msg, duration):
157153
158154
159155def run_picows_cython_plain_client (plain_url , ssl_url , ssl_context , msg , duration ):
160- global NAMES , RPS
161156 print ("Run picows cython plain client" )
162157 rps = asyncio .run (picows_main_cython (plain_url , msg , duration , None ))
163158 RPS ["plain" ].append (rps )
164159
165160
166161def run_picows_cython_ssl_client (plain_url , ssl_url , ssl_context , msg , duration ):
167- global NAMES , RPS
168162 print ("Run picows cython ssl client" )
169163 rps = asyncio .run (picows_main_cython (ssl_url , msg , duration , ssl_context ))
170164 RPS ["ssl" ].append (rps )
171165
172166
173167def run_boost_beast_client (args ):
174- global NAMES , RPS
175-
176168 print ("Run boost.beast plain client" )
177169 pr = subprocess .run ([args .boost_client , b"0" ,
178170 args .host .encode (),
0 commit comments