From e0c4a14495c4ea4bf210215558556f9881c67ac0 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Mon, 7 Feb 2022 17:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E4=B8=80=E7=82=B9?= =?UTF-8?q?=E7=82=B9=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/tests/stress_test.py | 13 +++++++++++++ db/data.db | Bin 12288 -> 12288 bytes templates/index.html | 4 +++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 bin/tests/stress_test.py 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 fe22bafab5700eb4843bbf80088d68cfd0d4a59d..16f07cf6a32cb420d20c565fa805cbf276d96d49 100644 GIT binary patch delta 115 zcmZojXh@hK#l##xQN{^KZcJFjuk?|Dk3WKq{|WzX{)_x4`498&qk)SAV>f0X|e|K!aA3Q_!%GxYno Iczt2204BsFssI20 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