diff --git a/main.py b/main.py index e3a139ebbc1e28e269858caedca71f38628f6c16..887142cbd5faa3a8f5b6188334d775e5018aa94a 100644 --- a/main.py +++ b/main.py @@ -25,6 +25,7 @@ class WebsiteUser(HttpUser): max_wait = 2000 -# if __name__ == '__main__': -# import os -# os.system("locust -f main.py --host=https://www.baidu.com --headless -u 5 -r 1 --run-time 100s --stop-timeout 99") \ No newline at end of file +if __name__ == '__main__': + import os + # os.system("locust -f main.py --host=https://www.baidu.com --headless -u 5 -r 1 --run-time 100s --stop-timeout 99") + os.system("locust -f main.py --host=https://www.baidu.com") \ No newline at end of file