Server IP : 85.214.239.14 / Your IP : 216.73.216.60 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/share/doc/uwsgi-core/tests/ |
Upload File : |
import uwsgi import time def application(env, start_response): counter = 0 start_response( '200 OK', [ ('Content-Type','text/html') ]) start_time = time.time() for i in range(1,100000): uwsgi.suspend() # print every 100 if i % 100 == 0: yield "<h1>%d</h1>\n" % i counter = counter + i yield "<h1>%d cycles after %d</h1>\n" % (counter, time.time() - start_time)