Skip to content
  • This project
    • Loading...
  • Sign in

周伟奇 / part_of_F3_OCR

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • part_of_F3_OCR
  • async_test
  • locustfile.py
  • 周伟奇's avatar
    add async test · a33165ce
    周伟奇 committed 2022-07-14 11:01:17 +0800
    a33165ce Browse Files
locustfile.py 310 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import time
from locust import HttpUser, task, between, constant, tag


class QuickstartUser(HttpUser):
    # wait_time = between(1, 5)

    @tag('sync')
    @task
    def sync_test(self):
        self.client.get("/sync")

    @tag('async')
    @task
    def async_test(self):
        self.client.get("/async")