TracerBench: Automated Chrome Tracing For Benchmarking
TracerBench
https://www.tracerbench.com/
Installation
yarn add @tracerbench/stats
// or
npm install --save @tracerbench/stats
Usage
'use strict';
const { Stats, convertMSToMicroseconds } = require('@tracerbench/stats');
const control = [1063, 2112, 1154, 988, 1066, 2111, 1097, 1062, 1033, 1017];
const experiment = [1063, 1092, 1088, 1030, 1089, 1047, 959, 1103, 1453, 1034];
const stats = new Stats({
control: control.map(convertMSToMicroseconds),
experiment: experiment.map(convertMSToMicroseconds),
name: 'My Experiment'
});
stats.name;
stats.controlMS;
stats.experimentMS;
stats.controlSortedMS;
stats.experimentSortedMS;
stats.sampleCount;
stats.range;
stats.sparkLine;
stats.confidenceInterval;
stats.estimator;
stats.sevenFigureSummary;
stats.outliers;
Statistics Primer
https://www.tracerbench.com/docs/guide/stats-primer
Stats API
https://github.com/TracerBench/tracerbench/blob/master/packages/stats/markdown/stats.md