diff --git a/__pycache__/main.cpython-38.pyc b/__pycache__/main.cpython-38.pyc index 186fc847c0b640451552824992fc6e3d71cea443..c7027b2d75fe5a3052ec237f831c681ac68a01da 100644 Binary files a/__pycache__/main.cpython-38.pyc and b/__pycache__/main.cpython-38.pyc differ diff --git a/main.py b/main.py index d95f2c4ecd74365363519b0e233ba3cadba91958..e3a139ebbc1e28e269858caedca71f38628f6c16 100644 --- a/main.py +++ b/main.py @@ -25,6 +25,6 @@ class WebsiteUser(HttpUser): max_wait = 2000 -if __name__ == '__main__': - import os - os.system("locust -f main.py --host=https://www.baidu.com") \ 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") \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a944180b20f9d984aac509389fa9d42b6ac6312d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1 @@ +locust==2.15.1 \ No newline at end of file