Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogithesymbian/k6-load-testing
only for access home page and auth access with codespace github to run it
https://github.com/yogithesymbian/k6-load-testing
load-balancer load-testing
Last synced: 10 days ago
JSON representation
only for access home page and auth access with codespace github to run it
- Host: GitHub
- URL: https://github.com/yogithesymbian/k6-load-testing
- Owner: yogithesymbian
- Created: 2024-12-17T07:19:17.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-17T07:54:55.000Z (about 2 months ago)
- Last Synced: 2024-12-17T08:36:22.803Z (about 2 months ago)
- Topics: load-balancer, load-testing
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![CleanShot 2024-12-17 at 3 41 08@2x](https://github.com/user-attachments/assets/24a392ac-a14f-43f9-9d1a-fd297b4d0ee1)
# k6-load-testing
only for access home page and auth access with codespace github to run it. for demo access click here ( ongoing ) full & free## codespace
use with github codespace no need to clone## Install k6
```
sudo apt update && sudo apt install -y gpg && curl https://dl.k6.io/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/k6-archive-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/k6-archive-keyring.gpg] https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list && sudo apt update && sudo apt install k6
```## check version
```
k6 version
```### usage
```
k6 run home-test.js
```### Analyze the Output
k6 will display real-time results in your terminal:Example output:
```
running (50s), 00/50 VUs, 10000 complete and 0 interrupted iterations
default ✓ [======================================] 50s 50/50 VUs 0m/shttp_req_duration..........: avg=180ms min=150ms med=170ms max=300ms
http_req_failed............: 0.00% ✓ 0 ✗ 10000
http_req_sending...........: avg=0.50ms min=0ms med=0.45ms max=1ms
http_reqs..................: 10000 200/s
```
Key Metrics:http_req_duration: The average response time (should be low).
http_req_failed: Percentage of failed requests (should be 0%).
http_reqs: Total number of HTTP requests made.