🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
Advanced

Load Testing with k6

#k6 #performance #load-testing #javascript

Design a load testing script using the k6 tool to stress test a web endpoint.

Create a k6 script that load tests a JSON API endpoint. Configure the script to simulate 50 virtual users (VUs) over a duration of 30 seconds. Include thresholds to ensure that 95% of requests must complete below 500ms and the error rate must not exceed 1%.