Giter Site home page Giter Site logo

Comments (1)

GavinRay97 avatar GavinRay97 commented on July 24, 2024

Heya, you should be able to add a property to each query, debug: true, and see in the process output what is happening (this is not supported for wrk2 atm, only k6 and autocannon):

// If debug, log each response body
if (this.config.debug)
config.setupClient = (client) => client.on('body', console.log)

// If "debug" true, log all HTTP responses
if (this.config.debug) config.httpDebug = 'full'

So it would look like:

url: 'http://linksplatform.ddns.net:29018/graphql'
queries:
  - name: GetSingleLink
    debug: true
    tools: [k6, autocannon]
    execution_strategy: REQUESTS_PER_SECOND
    rps: 100
    duration: 10s
    query: |
      query {
        links(where: {
          from_id: { _eq: 2 },
          to_id: { _eq: 1 }
        }) {
          id
          from_id
          to_id
        }
      }

Maybe you need Content-Type: application/json in headers?

url: 'http://linksplatform.ddns.net:29018/graphql'
headers:
    Content-Type: "application/json"
queries:
  - name: GetSingleLink
    # ...

from graphql-bench.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.