UNPKG

@dapplion/benchmark

Version:

Ensures that new code does not introduce performance regressions with CI. Tracks:

14 lines (13 loc) 558 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.shell = shell; const node_util_1 = __importDefault(require("node:util")); const node_child_process_1 = __importDefault(require("node:child_process")); const exec = node_util_1.default.promisify(node_child_process_1.default.exec); async function shell(cmd) { const { stdout } = await exec(cmd); return (stdout || "").trim(); }