diff --git a/bin/tests/stress_test.py b/bin/tests/stress_test.py new file mode 100644 index 0000000..fecd0c1 --- /dev/null +++ b/bin/tests/stress_test.py @@ -0,0 +1,13 @@ +#!/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 + + +for i in range(100): + print(requests.get('http://127.0.0.1:5000/API?name=89999&length=10&theme=t2').elapsed.microseconds) \ No newline at end of file diff --git a/db/data.db b/db/data.db index fe22baf..16f07cf 100644 Binary files a/db/data.db and b/db/data.db differ diff --git a/templates/index.html b/templates/index.html index 949520c..bb641d8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,5 @@ - + Flask Counter - {{ title }} @@ -10,4 +10,6 @@ + + \ No newline at end of file