Skip to content

Testing/k6 load testing#126

Open
Jingyan5 wants to merge 61 commits into
mainfrom
testing/k6-load-testing
Open

Testing/k6 load testing#126
Jingyan5 wants to merge 61 commits into
mainfrom
testing/k6-load-testing

Conversation

@Jingyan5

Copy link
Copy Markdown

k6 - Load Testing Tool Integration

Installation Evidence

  • k6 v1.6.1 installed via apt on the VM
  • k6-tests/load-test.js test script created

Artifacts

  • k6-tests/k6-output.txt — terminal output from k6 load test run

Results Summary

  • 300 total requests, 10 virtual users over 30 seconds
  • 100% success rate (all checks passed)
  • Avg response time: 18.72ms, max: 178.79ms
  • All responses under 500ms threshold

Pros

  • Zero code changes required to existing codebase
  • Immediately produces rich, quantitative performance metrics
  • Simulates real concurrent user traffic
  • Simple JavaScript-based test scripts
  • Great for catching performance regressions over time
  • Can integrate into GitHub Actions CI pipeline

Cons

  • Requires the app to be running during the test
  • Only tests performance, not code quality or security
  • Results vary depending on VM load at time of test
  • No built-in comparison between runs

Customization Notes

  • vus and duration can be tuned to simulate heavier traffic
  • Can add multiple endpoints to test different routes
  • Thresholds can be set to auto-fail if response times exceed limits

IAmCheese1231 and others added 30 commits February 3, 2026 16:16
Implement resolved/unresolved thread functionality for Q&A topics
P1: merge all code smell fixes into team repo
IAmCheese1231 and others added 30 commits February 19, 2026 19:57
Implement accepted answer functionality for Q&A topics
Implement OH Queue Infrastructure
Add comprehensive tests for folder functionality in the user model
Fix quotes for user in docker-compose-redis.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants