INNER CODE UNIT · TypeScript
runRequestsPerSecondBench
hasura/graphql-bench · app/queries/src/executors/wrk2/index.ts:125
public async runRequestsPerSecondBench(bench: RequestsPerSecondBenchmark) {
const queryName = this._makeBenchmarkName(bench)
console.log('Wrk2, runRequestsPerSecondBench:')
console.log('Bench:', bench)
console.log('queryName:', queryName)
const metadata = {
queryName,
outputFile: `${queryName}.json`,
}
return this._runWrk2(metadata, {
url: this.config.url,
options: {
script: path.join(this.localBinaryFolder, '/wrk/graphql-bench.lua'),
latency: true,
duration: bench.duration,
rate: bench.rps,
},
config: {