INNER CODE UNIT · TypeScript

BenchmarkExecutor

hasura/graphql-bench · app/queries/src/executors/base/index.ts:72

export abstract class BenchmarkExecutor {
  // Each benchmark executor must mark their tool, used to check whether they're enabled for a query in "runBenchmarks"
  public abstract tool: BenchmarkTool
  public config: GlobalConfig

  /** Path to the configuration file to load */
  private configPath = path.join(__dirname, '../../config.yaml')
  /** Path to the reports directory */
  public baseReportPath = path.join(__dirname, '../../../reports')

  public localBinaryFolder = path.join(__dirname, '../../../bin')

  constructor(config?: GlobalConfig, configFilePath?: string) {
    this.config = config || this.readConfigFile(configFilePath)
  }

  // Returns "${queryName}-{toolName}" for marking benchmark result metrics
  // protected _getBrandedBenchmarkQueryName(queryName: string) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…