Instance of a Clava benchmark.

Implements _compilePrivate and .getKernel().

Hierarchy (view full)

Constructors

Properties

cmaker: undefined | cMaker
cmakerProvider: (() => cMaker)
CACHE_ENABLE: boolean

Methods

  • Restores the AST previous to load().

    Returns void

  • Compiles the current version of the benchmark that is in the AST. Requires calling .load() first.

    Returns undefined | File

  • Executes the current version of the benchmark. Requires calling .compile() first.

    Returns processExecutor

    the ProcessExecutor used to execute this instance

  • Returns void

  • Returns File

    The base folder for all benchmark instances. Currently is a folder 'laraBenchmarks' inside the working directory.

  • Returns string

    The name of this BenchmarkInstance.

  • Returns boolean

  • Saves the current AST and loads this benchmark into the AST.

    Returns void

  • Type Parameters

    Parameters

    • compilationEngineProvider: (new (name: string) => T)
        • new (name): T
        • Parameters

          • name: string

          Returns T

    Returns void

  • Parameters

    Returns void

  • Test the current instance.

    Parameters

    • Optionalworker: ((instance: benchmarkInstance) => boolean)

      Function with no parameters that will be called after loading the benchmark code as AST.

    • OptionalexecuteCode: boolean

      If true, executes the code after worker is applied.

    • OptionaloutputProcessor: ((executor: processExecutor) => void)

      If execution is enabled, will be called after execution with the corresponding ProcessExecutor.

    Returns boolean

    True, if finished without problems

  • Clears compilation cache of all BenchmarkInstances.

    Returns void

  • Parameters

    • enable: boolean

      If true, enables caching of parsed files. By default, caching is enabled.

    Returns void