From 3970f352ad01d1fa9ecf3da4cc626ac4e0c02abe Mon Sep 17 00:00:00 2001 From: EscapedShark <125725623+EscapedShark@users.noreply.github.com> Date: Sun, 2 Jun 2024 21:29:18 +1000 Subject: [PATCH] Update README.md --- k6_test/README.md | 101 ++++++++++++++++++++++++++++++---------------- 1 file changed, 67 insertions(+), 34 deletions(-) diff --git a/k6_test/README.md b/k6_test/README.md index b045cad..2c75f58 100644 --- a/k6_test/README.md +++ b/k6_test/README.md @@ -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% \ No newline at end of file +### 5. Create Order +- **Total Requests**: 3584 +- **Successful Requests**: 100.00% +- **Average HTTP Request Duration**: 13.4ms +- **HTTP Request Failure Rate**: 0.00% +```