-import type { WorkerChoiceStrategyOptions } from './pools/selection-strategies/selection-strategies-types'
+import type {
+ MeasurementStatisticsRequirements,
+ WorkerChoiceStrategyOptions
+} from './pools/selection-strategies/selection-strategies-types'
/**
* An intentional empty function.
*/
export const DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS: WorkerChoiceStrategyOptions =
{
- medRunTime: false
+ runTime: { median: false },
+ waitTime: { median: false },
+ elu: { median: false }
+ }
+
+/**
+ * Default measurement statistics requirements.
+ */
+export const DEFAULT_MEASUREMENT_STATISTICS_REQUIREMENTS: MeasurementStatisticsRequirements =
+ {
+ aggregate: false,
+ average: false,
+ median: false
}
/**
)
}
+/**
+ * Is the given object a plain object?
+ *
+ * @param obj - The object to check.
+ * @returns `true` if the given object is a plain object, `false` otherwise.
+ */
export const isPlainObject = (obj: unknown): boolean =>
typeof obj === 'object' &&
obj !== null &&