A slicer that can be used to slice exactly one file (multiple times). It holds its own RShell instance, maintains a cached dataflow and keeps measurements.

Make sure to call init to initialize the slicer, before calling slice. After slicing, call finish to close the R session and retrieve the stats.

Under the hood, the benchmark slicer maintains a PipelineExecutor using the DEFAULT_SLICING_PIPELINE.

Constructors

Methods

  • Only call in case of an error - if the session must be closed and the benchmark itself is to be considered failed/dead.

    Returns void

  • Call slice for all slicing criteria that match the given filter. See collectAllSlicingCriteria for details.

    the `report` function will be called *before* each *individual* slice is performed.

    Parameters

    • filter: SlicingCriteriaFilter
    • report: ((current: number, total: number, allCriteria: SlicingCriteria[]) => void) = ...
        • (current, total, allCriteria): void
        • Parameters

          Returns void

    • sampleRandom: number = -1

    Returns Promise<number>

    The number of slices that were produced

    • collectAllSlicingCriteria
    • SlicingCriteriaFilter