Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EscapedShark authored Jun 2, 2024
1 parent 26b6d81 commit 3970f35
Showing 1 changed file with 67 additions and 34 deletions.
101 changes: 67 additions & 34 deletions k6_test/README.md
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%
```

0 comments on commit 3970f35

Please sign in to comment.