Skip to content

Xiao75896453/load_testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEMO

PyCon TW 2024 talk Using Load Testing to Unveil Performance Differences Between Sync and Async: Web Server as a Case Study


Projects

account_password_management

My Skills

Requirements

  • python 3.11+
  • poetry

Installation

  1. Clone the repo

    git clone
  2. Install Python packages

    poetry install
  3. Install PostgreSQL

  4. Set PostgreSQL account

  5. Create DB and Schema

  6. Create .env

    .env example

    STAGE="prod"
    SERVICE_PORT=3000
    WORKERS=1
    HOST="0.0.0.0"
    
    DB_HOST="localhost"
    DB_PORT="5432"
    DB_USER="postgres"
    DB_PASSWORD="password"
    DB_DATABASE="load_testing"
    DB_POOL_SIZE=10
    DB_MAX_OVERFLOW=5
    DB_POOL_RECYCLE=300

Usage

  • Startup the services
    python app.py
  • Execute load testing
    locust --config .\locust_files\demo_config.conf {User Class}

API Document

  1. Startup the services
  2. Open a browser to http://localhost:3000/docs#

Contact

TingYi Xiao - a75896453@gmail.com


Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages