1. Install Docker

  2. Install K6

  3. Choose a service (<service>):

    • native
    • undici
    • whatwg-node
    • node-fetch
  4. Set port

    export PORT=3000
    • (optional) Consume the response body

      export CONSUME_BODY=true
  5. Start containers

    docker compose up httpbin <service> -d --build
  6. Run memcheck

    # ./memcheck.sh <service> <VUs> <duration>
    ./memcheck.sh <service> 100 30s