Slide 6
Slide 6 text
最初にやったこと - Grafana k6 による負荷テストシナリオ
Grafana k6 is an open-source load testing tool that makes performance testing easy
and productive for engineering teams. k6 is free, developer-centric, and extensible.
OSSの負荷試験ツール
JavaScriptでシナリオを記述できる
import http from 'k6/http'
import { check, sleep } from 'k6'
export default function () {
const data = { username: 'username', password: 'password' }
let res = http.post('https://myapi.com/login/', data)
check(res, { 'success login': (r) => r.status === 200 })
sleep(0.3)
}