ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("lara.benchmark.BenchmarkSet");

(.lara)
import lara.benchmark.BenchmarkSet;

BenchmarkSet

Constructor

BenchmarkSet

new BenchmarkSet(name)

Represents a set of BenchmarkInstances.

Parameters

name: any

Instance Members

Symbol.iterator

Symbol.iterator

Generator function that automatically handles loading/closing BenchmarkInstances.


getInstances

getInstances()

Instances of benchmarks, according to the current configuration.

Returns

BenchmarkInstance[] - an array of BenchmarkInstance.

getName

getName()

setCMakerProvider

setCMakerProvider(cmakerProviderFunction)

Parameters

cmakerProviderFunction: any

test

test([worker = undefined], [executeCode = false], [outputProcessor = undefined])

Test the current benchmark set.

Parameters

worker: function() - Function with no parameters that will be called after loading the bencharmk code as AST. (optional)
executeCode: boolean - If true, executes the code after worker is applied. (optional)
outputProcessor: function(lara.util.ProcessExecutor) - If execution is enabled, will be called after execution with the corresponding ProcessExecutor. (optional)

Returns

String[] - an array with the names of benchmarks that finished with problemas, or an empty array if everything was fine.