mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode PR-URL: https://github.com/nodejs/node/pull/65631 Reviewed-By: Filip Skokan <panva.ip@gmail.com>
22 lines
407 B
JavaScript
22 lines
407 B
JavaScript
'use strict';
|
|
|
|
const { kEmptyObject } = require('internal/util');
|
|
const {
|
|
createRunner,
|
|
runBenchmarks,
|
|
} = require('internal/bench_runner/harness');
|
|
|
|
function run(options = kEmptyObject) {
|
|
return runBenchmarks(options);
|
|
}
|
|
|
|
function runFile(path, options = kEmptyObject) {
|
|
return require('internal/bench_runner/cli').runFile(path, options);
|
|
}
|
|
|
|
module.exports = {
|
|
createRunner,
|
|
run,
|
|
runFile,
|
|
};
|