-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26b6d81
commit 3970f35
Showing
1 changed file
with
67 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,75 @@ | ||
# macOS | ||
|
||
### macOS | ||
```bash | ||
brew install k6 | ||
``` | ||
|
||
# Windows (Using Chocolatey) | ||
### Windows (Using Chocolatey) | ||
```bash | ||
choco install k6 | ||
``` | ||
|
||
# Linux | ||
### Linux | ||
```bash | ||
sudo apt install k6 | ||
``` | ||
|
||
## Running Tests | ||
|
||
### User Sign-Up and Deletion | ||
```bash | ||
k6 run sign_up_and_delete_user.js | ||
``` | ||
|
||
### Get User Info | ||
```bash | ||
k6 run get_user_info.js | ||
``` | ||
|
||
### Create Menu Item | ||
```bash | ||
k6 run create_menu_item.js | ||
``` | ||
|
||
### Get Menu Items | ||
```bash | ||
k6 run get_menu_item.js | ||
``` | ||
|
||
### Create Order | ||
```bash | ||
k6 run create_order.js | ||
``` | ||
|
||
## Test Results | ||
|
||
### 1. User Sign-Up and Deletion | ||
- **Total Requests**: 7116 | ||
- **Successful Requests**: 100.00% | ||
- **Average HTTP Request Duration**: 10.42ms | ||
- **HTTP Request Failure Rate**: 0.00% | ||
|
||
### 2. Get User Info | ||
- **Total Requests**: 3605 | ||
- **Successful Requests**: 100.00% | ||
- **Average HTTP Request Duration**: 6.62ms | ||
- **HTTP Request Failure Rate**: 0.00% | ||
|
||
### 3. Create Menu Item | ||
- **Total Requests**: 3606 | ||
- **Successful Requests**: 100.00% | ||
- **Average HTTP Request Duration**: 7.34ms | ||
- **HTTP Request Failure Rate**: 0.00% | ||
|
||
### 4. Get Menu Items | ||
- **Total Requests**: 1260 | ||
- **Successful Requests**: 78.05% | ||
- **Average HTTP Request Duration**: 1.89s | ||
- **HTTP Request Failure Rate**: 0.00% | ||
|
||
k6 run sign_up_and_delete_user.js | ||
k6 run get_user_info.js | ||
k6 run create_menu_item.js | ||
k6 run get_menu_item.js | ||
k6 run create_order.js | ||
|
||
1. User Sign-Up and Deletion (sign_up_and_delete_user.js) | ||
Total Requests: 7116 | ||
Successful Requests: 100.00% | ||
Average HTTP Request Duration: 10.42ms | ||
HTTP Request Failure Rate: 0.00% | ||
2. Get User Info (get_user_info.js) | ||
Total Requests: 3605 | ||
Successful Requests: 100.00% | ||
Average HTTP Request Duration: 6.62ms | ||
HTTP Request Failure Rate: 0.00% | ||
3. Create Menu Item (create_menu_item.js) | ||
Total Requests: 3606 | ||
Successful Requests: 100.00% | ||
Average HTTP Request Duration: 7.34ms | ||
HTTP Request Failure Rate: 0.00% | ||
4. Get Menu Items (get_menu_item.js) | ||
Total Requests: 1260 | ||
Successful Requests: 78.05% | ||
Average HTTP Request Duration: 1.89s | ||
HTTP Request Failure Rate: 0.00% | ||
5. Create Order (create_order.js) | ||
Total Requests: 3584 | ||
Successful Requests: 100.00% | ||
Average HTTP Request Duration: 13.4ms | ||
HTTP Request Failure Rate: 0.00% | ||
### 5. Create Order | ||
- **Total Requests**: 3584 | ||
- **Successful Requests**: 100.00% | ||
- **Average HTTP Request Duration**: 13.4ms | ||
- **HTTP Request Failure Rate**: 0.00% | ||
``` |