This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2022-02-08 19:46:11 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
# -- coding:utf-8 --
|
|
|
|
|
# @Author: markushammered@gmail.com
|
|
|
|
|
# @Development Tool: PyCharm
|
|
|
|
|
# @Create Time: 2022/2/7
|
|
|
|
|
# @File Name: stress_test.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import requests
|
2022-02-09 16:43:55 +08:00
|
|
|
import threading
|
2022-02-08 19:46:11 +08:00
|
|
|
|
|
|
|
|
|
2022-02-09 16:43:55 +08:00
|
|
|
def thread_():
|
2022-02-10 13:03:02 +08:00
|
|
|
print(requests.get('http://127.0.0.1:5000/get?name=MarkusJoe&theme=lewd').elapsed.microseconds)
|
2022-02-09 16:43:55 +08:00
|
|
|
|
|
|
|
|
|
2022-02-10 13:03:02 +08:00
|
|
|
for i in range(100):
|
2022-02-09 16:43:55 +08:00
|
|
|
threading.Thread(target=thread_).start()
|