kruonis
Version:
A tool to perform benchmarks on TS
23 lines (22 loc) • 726 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Stats = void 0;
const internal_1 = require("./internal");
/**
* The stats resultant of running a test
*/
class Stats {
/**
* Constructor
*
* @param cycleTimes list of obtained performance times of each cycle
*/
constructor(cycleTimes) {
this.mean = new internal_1.Mean().calculate(cycleTimes);
this.std = new internal_1.StandardDeviation().calculate(cycleTimes);
this.count = new internal_1.Count().calculate(cycleTimes);
this.max = new internal_1.Maximum().calculate(cycleTimes);
this.min = new internal_1.Minimum().calculate(cycleTimes);
}
}
exports.Stats = Stats;
;