Archived
19 lines
409 B
Python
19 lines
409 B
Python
#!/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
|
|
import threading
|
|
|
|
|
|
def thread_():
|
|
print(requests.get('http://127.0.0.1:5000/get?name=89999&length=10&theme=t2').elapsed.microseconds)
|
|
|
|
|
|
for i in range(1000000):
|
|
threading.Thread(target=thread_).start()
|