# The smallest useful loadr test: 10 virtual users hammering one endpoint
# for 30 seconds, with checks and a pass/fail threshold.
#
#   loadr run examples/01-quickstart.yaml
name: quickstart
description: 10 VUs against one endpoint for 30s

defaults:
  http:
    base_url: https://httpbin.org
    timeout: 10s

scenarios:
  hit_home:
    executor: constant-vus
    vus: 10
    duration: 30s
    flow:
      - request:
          name: get
          method: GET
          url: /get
          checks:
            - { type: status, equals: 200 }
            - { type: duration, name: fast enough, max: 800ms }

thresholds:
  http_req_duration: [ "p(95)<1000" ]
  http_req_failed: [ "rate<0.01" ]
  checks: [ "rate>0.95" ]
