🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna
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%.